代码更新
This commit is contained in:
@@ -99,7 +99,7 @@ public class GenCodeServiceImpl implements GenCodeService {
|
|||||||
//如果flag=1就执行更新数据库的操作
|
//如果flag=1就执行更新数据库的操作
|
||||||
String flag = (String) form.get("flag");
|
String flag = (String) form.get("flag");
|
||||||
WQLObject wo = WQLObject.getWQLObject("sys_code_rule_detail");
|
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 = "";
|
String demo = "";
|
||||||
boolean is_same = true;
|
boolean is_same = true;
|
||||||
for (int i = 0; i < ja.size(); i++) {
|
for (int i = 0; i < ja.size(); i++) {
|
||||||
@@ -174,7 +174,7 @@ public class GenCodeServiceImpl implements GenCodeService {
|
|||||||
//如果flag=1就执行更新数据库的操作
|
//如果flag=1就执行更新数据库的操作
|
||||||
String flag = (String) form.get("flag");
|
String flag = (String) form.get("flag");
|
||||||
WQLObject wo = WQLObject.getWQLObject("sys_code_rule_detail");
|
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 = "";
|
String demo = "";
|
||||||
boolean is_same = true;
|
boolean is_same = true;
|
||||||
for (int i = 0; i < ja.size(); i++) {
|
for (int i = 0; i < ja.size(); i++) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import java.util.HashMap;
|
|||||||
|
|
||||||
public class CodeUtil {
|
public class CodeUtil {
|
||||||
|
|
||||||
public static synchronized String getNewCode(String ruleCode){
|
public static String getNewCode(String ruleCode){
|
||||||
GenCodeService service=new GenCodeServiceImpl();
|
GenCodeService service=new GenCodeServiceImpl();
|
||||||
String flag = "1";
|
String flag = "1";
|
||||||
HashMap<String,String> map = new HashMap<>();
|
HashMap<String,String> map = new HashMap<>();
|
||||||
@@ -16,7 +16,7 @@ public class CodeUtil {
|
|||||||
return service.codeDemo(map);
|
return service.codeDemo(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static synchronized String getNewCode2(String ruleCode){
|
public static String getNewCode2(String ruleCode){
|
||||||
GenCodeService service=new GenCodeServiceImpl();
|
GenCodeService service=new GenCodeServiceImpl();
|
||||||
String flag = "1";
|
String flag = "1";
|
||||||
HashMap<String,String> map = new HashMap<>();
|
HashMap<String,String> map = new HashMap<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user