fix: 任务、物料、mes对接

This commit is contained in:
2023-06-29 10:03:55 +08:00
parent cf74502043
commit f50ab33253
16 changed files with 486 additions and 172 deletions

View File

@@ -1,9 +1,12 @@
package org.nl;
import cn.dev33.satoken.annotation.SaIgnore;
import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSONObject;
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import io.swagger.annotations.Api;
import org.nl.modules.wql.core.bean.WQLObject;
import org.nl.modules.wql.util.SpringContextHolder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -39,7 +42,7 @@ public class AppRun {
public static void main(String[] args) {
SpringApplication.run(AppRun.class, args);
}
@@ -63,6 +66,50 @@ public class AppRun {
@GetMapping("/")
@SaIgnore
public String index() {
// WQLObject pointTab = WQLObject.getWQLObject("SCH_BASE_Point");
// int block = 6;
// int row = 4; // 排
// int col = 8;
// String regionCode = "YSQB01";
// String regionId = "1663803432005406720";
// String regionName = "养生区B";
// for (int i = 5; i <= block; i++) {
// for (int j = 1; j <= row; j++) {
// for (int k = 1; k <= col; k++) {
// String pointCode = "1";
// // 块
// pointCode = pointCode + i;
// // 排
// if (j < 10) pointCode = pointCode + "0" + j + "-";
// else pointCode = pointCode + j + "-";
// // 列
// if (k < 10) pointCode = pointCode + "0" + k + "-" + "01";
// else pointCode = pointCode + k + "-" + "01";
// String name = j + "排" + k + "列" + "1层";
// String pointStatus = "1";
// String can_vehicle_type = "3";
// JSONObject po = new JSONObject();
// po.put("point_id", IdUtil.getSnowflake(1,1).nextIdStr());
// po.put("point_code", pointCode);
// po.put("point_name", name);
// po.put("point_status", pointStatus);
// po.put("can_vehicle_type", can_vehicle_type);
// po.put("region_id", regionId);
// po.put("region_code", regionCode);
// po.put("region_name", regionName);
// po.put("block_num", i);
// po.put("row_num", j);
// po.put("col_num", k);
// po.put("layer_num", 1);
// po.put("in_order_seq", col - k + 1);
// po.put("out_order_seq", k);
// po.put("in_empty_seq", col - k + 1);
// po.put("out_empty_seq", k);
// pointTab.insert(po);
// }
// }
// }
return "Backend service started successfully";
}
}