This commit is contained in:
2022-11-17 14:39:01 +08:00
parent a2772eeb86
commit 8e71292260
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ public class GenCodeServiceImpl implements GenCodeService {
//如果flag=1就执行更新数据库的操作
String flag = (String) form.get("flag");
WQLObject wo = WQLObject.getWQLObject("sys_code_rule_detail");
JSONArray ja = wo.query("code_rule_id = '" + id + "'", " sort_num,type FOR UPDATE").getResultJSONArray(0);
JSONArray ja = wo.query("code_rule_id = '" + id + "' FOR UPDATE").getResultJSONArray(0);
String demo = "";
boolean is_same = true;
for (int i = 0; i < ja.size(); i++) {

View File

@@ -7,7 +7,7 @@ import java.util.HashMap;
public class CodeUtil {
public static synchronized String getNewCode(String ruleCode){
public static String getNewCode(String ruleCode){
GenCodeService service=new GenCodeServiceImpl();
String flag = "1";
HashMap<String,String> map = new HashMap<>();