rev:测试修改

This commit is contained in:
2024-02-27 19:42:06 +08:00
parent aca9984d3f
commit 89371b1d5b
14 changed files with 110 additions and 36 deletions

View File

@@ -159,21 +159,21 @@ public class Init implements ApplicationRunner {
json.put("struct_id", IdUtil.getSnowflake(1,1).nextId());
if (i < 10) {
json.put("struct_code", "81-"+"000"+i+"-01");
json.put("struct_name", "81排"+"000"+i+"列-01层");
json.put("struct_code", "91-"+"000"+i+"-01");
json.put("struct_name", "91排"+"000"+i+"列-01层");
}else if (i >= 10 && i < 100) {
json.put("struct_code", "81-"+"00"+i+"-01");
json.put("struct_name", "81排"+"00"+i+"列-01层");
json.put("struct_code", "91-"+"00"+i+"-01");
json.put("struct_name", "91排"+"00"+i+"列-01层");
}else if (i >= 100 && i < 1000) {
json.put("struct_code", "81-"+"0"+i+"-01");
json.put("struct_name", "81排"+"0"+i+"列-01层");
json.put("struct_code", "91-"+"0"+i+"-01");
json.put("struct_name", "91排"+"0"+i+"列-01层");
} else {
json.put("struct_code", "81-"+i+"-01");
json.put("struct_name", "81排"+i+"列-01层");
json.put("struct_code", "91-"+i+"-01");
json.put("struct_name", "91排"+i+"列-01层");
}
JSONObject jsonObject = tab2.query("stor_id = '1597073830499717137'").uniqueResult(0);
JSONObject jsonObjec2 = tab3.query("stor_id = '1597073830499717137' and sect_code = 'XN81'").uniqueResult(0);
JSONObject jsonObject = tab2.query("stor_id = '1597073830499717138'").uniqueResult(0);
JSONObject jsonObjec2 = tab3.query("stor_id = '1597073830499717138' and sect_code = 'XN91'").uniqueResult(0);
// 新增仓位
json.put("simple_name", json.getString("struct_name"));