Commit ed80105e authored by Quxl's avatar Quxl

x

parent e5c844a2
...@@ -115,8 +115,8 @@ public class CommonService { ...@@ -115,8 +115,8 @@ public class CommonService {
public String getLoopIndex(String name) { public String getLoopIndex(String name) {
String loopIndexName = name + "_LOOP_INDEX"; String loopIndexName = name + "_LOOP_INDEX";
Long index = this.getNextval(loopIndexName); Long index = this.getNextval(loopIndexName);
if(index < 1000) { if(index < 100000) {
return StringUtil.format(index, "000"); return StringUtil.format(index, "00000");
} else { } else {
jdbcTemplate.update("update x_sequence set value = 1 where name = '" + loopIndexName + "'"); jdbcTemplate.update("update x_sequence set value = 1 where name = '" + loopIndexName + "'");
return this.getLoopIndex(name); return this.getLoopIndex(name);
......
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