代码更新
This commit is contained in:
@@ -20,22 +20,29 @@ import org.springframework.stereotype.Component;
|
||||
public class Init implements ApplicationRunner {
|
||||
@Override
|
||||
public void run(ApplicationArguments args) throws Exception {
|
||||
// WQLObject tab = WQLObject.getWQLObject("ST_IVT_StructAttr");
|
||||
/*WQLObject tab = WQLObject.getWQLObject("ST_IVT_StructAttr");
|
||||
|
||||
/*String now = DateUtil.now();
|
||||
for (int i = 0; i < 10000; i++) {
|
||||
String now = DateUtil.now();
|
||||
for (int i = 1; i < 10000; i++) {
|
||||
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("struct_id", IdUtil.getSnowflake(1,1).nextId());
|
||||
|
||||
if (i > 10) {
|
||||
json.put("struct_code", "01-"+"0"+i+"-01");
|
||||
if (i < 10) {
|
||||
json.put("struct_code", "01-"+"000"+i+"-01");
|
||||
json.put("struct_name", "01排"+"000"+i+"列-01层");
|
||||
|
||||
}else if (i >= 10 && i < 100) {
|
||||
json.put("struct_code", "01-"+"00"+i+"-01");
|
||||
json.put("struct_name", "01排"+"00"+i+"列-01层");
|
||||
}else if (i >= 100 && i < 1000) {
|
||||
json.put("struct_code", "01-"+"0"+i+"-01");
|
||||
json.put("struct_name", "01排"+"0"+i+"列-01层");
|
||||
} else {
|
||||
json.put("struct_code", "01-"+i+"-01");
|
||||
json.put("struct_name", "01排"+i+"列-01层");
|
||||
}
|
||||
json.put("struct_name", "1排"+i+"列");
|
||||
json.put("simple_name", "1排"+i+"列");
|
||||
json.put("simple_name", json.getString("struct_name"));
|
||||
json.put("sect_id", "1586913215886004224");
|
||||
json.put("sect_code", "XN01");
|
||||
json.put("sect_name", "虚拟区");
|
||||
|
||||
Reference in New Issue
Block a user