代码更新
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
package org.nl.start;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.common.utils.SecurityUtils;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -15,6 +20,43 @@ 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");
|
||||
|
||||
/*String now = DateUtil.now();
|
||||
for (int i = 0; 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");
|
||||
|
||||
} else {
|
||||
json.put("struct_code", "01-"+i+"-01");
|
||||
}
|
||||
json.put("struct_name", "1排"+i+"列");
|
||||
json.put("simple_name", "1排"+i+"列");
|
||||
json.put("sect_id", "1586913215886004224");
|
||||
json.put("sect_code", "XN01");
|
||||
json.put("sect_name", "虚拟区");
|
||||
json.put("stor_id", "1582991156504039424");
|
||||
json.put("stor_code", "CP01");
|
||||
json.put("stor_name", "成品仓库");
|
||||
json.put("row_num", 1);
|
||||
json.put("col_num", i);
|
||||
json.put("layer_num", 1);
|
||||
json.put("block_num", 1);
|
||||
json.put("in_order_seq", i);
|
||||
json.put("out_order_seq", i);
|
||||
json.put("in_empty_seq", i);
|
||||
json.put("out_empty_seq", i);
|
||||
json.put("create_id", "1");
|
||||
json.put("create_name", "管理员");
|
||||
json.put("create_time", now);
|
||||
json.put("material_height_type", 1);
|
||||
tab.insert(json);
|
||||
}*/
|
||||
|
||||
System.out.println("项目启动成功!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user