Commit 1f85689f authored by Quxl's avatar Quxl

x

parent 09368344
...@@ -14,7 +14,6 @@ import org.springframework.stereotype.Service; ...@@ -14,7 +14,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import com.egolm.sso.SapServiceApplication;
import com.egolm.sso.config.XRException; import com.egolm.sso.config.XRException;
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.SqlUtil; import com.egolm.sso.util.SqlUtil;
...@@ -52,12 +51,8 @@ public class CommonService { ...@@ -52,12 +51,8 @@ public class CommonService {
@Value("${dataTracking.isOpen}") @Value("${dataTracking.isOpen}")
private boolean isOpen; private boolean isOpen;
private Long getNextval(String sName) { public Long getNextval(String sName) {
CommonService common = SapServiceApplication.getBean(CommonService.class); //JdbcTemplate jdbcTemplate = SapServiceApplication.getBean(JdbcTemplate.class);
return common.getNextval2(sName);
}
private Long getNextval2(String sName) {
try { try {
Map<String, Object> seqMap = jdbcTemplate.queryForMap("select * from x_sequence where name = ?", sName); Map<String, Object> seqMap = jdbcTemplate.queryForMap("select * from x_sequence where name = ?", sName);
Integer id = (Integer) seqMap.get("id"); Integer id = (Integer) seqMap.get("id");
......
...@@ -8,3 +8,4 @@ spring: ...@@ -8,3 +8,4 @@ spring:
maxWait: 60000 maxWait: 60000
minIdle: 1 minIdle: 1
dataTracking.isOpen: false dataTracking.isOpen: false
wsUsedAuth: false
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment