Commit ff693850 authored by Quxl's avatar Quxl

x

parent 8ff8c065
......@@ -23,6 +23,7 @@ import com.egolm.sso.util.SqlUtil.Sql;
import com.egolm.sso.util.StringUtil;
@Service
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public class CommonService {
@Autowired
......@@ -52,7 +53,6 @@ public class CommonService {
@Value("${dataTracking.isOpen}")
private boolean isOpen;
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public Long getNextval(String sName) {
try {
Map<String, Object> seqMap = jdbcTemplate.queryForMap("select * from x_sequence where name = ?", sName);
......@@ -86,7 +86,7 @@ public class CommonService {
}
}
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public void saveApiAccessLog(String METHOD, String ADDRESS, String RESULT) {
Date now = new Date();
Map<String, Object> map = new HashMap<String, Object>();
......@@ -103,14 +103,12 @@ public class CommonService {
jdbcTemplate.update(sql, objs);
}
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public String getNextBatch(Date day, String sPrefix, String sName) {
String dateString = DateUtil.formatDate(day, "yyyyMMdd");
sName = sPrefix + "_" + sName + "_" + dateString;
return dateString + "-" + this.getNextval(sName);
}
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public String getNextTrace(Date now, String sPrefix, String sName) {
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
String timeString = DateUtil.formatDate(now, "yyyyMMddHHmmssSSS");
......
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