|
@ -118,42 +118,37 @@ public class PointController { |
|
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
|
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// @GetMapping("/add")
|
|
|
@GetMapping("/add") |
|
|
// @SaIgnore
|
|
|
@SaIgnore |
|
|
// public ResponseEntity<Object> add() {
|
|
|
public ResponseEntity<Object> add() { |
|
|
// WQLObject sch_base_point = WQLObject.getWQLObject("SCH_BASE_Point");
|
|
|
WQLObject sch_base_point = WQLObject.getWQLObject("SCH_BASE_Point"); |
|
|
// String code = "FMJDJW";
|
|
|
|
|
|
// String name = "困料货架";
|
|
|
String code = ""; |
|
|
// for (int i = 1; i <= 4; i++) {
|
|
|
String name = "1排"; |
|
|
// JSONObject object = new JSONObject();
|
|
|
for (int i = 1; i <= 10; i++) { |
|
|
// object.put("point_id", IdUtil.getSnowflake(1, 1).nextId());
|
|
|
if (i < 10) { |
|
|
// if (i == 1) {
|
|
|
code = "BTHC" + "0" + i; |
|
|
// object.put("point_code", "FMJDJW0101");
|
|
|
} else { |
|
|
// object.put("point_name", "覆膜机对接位101");
|
|
|
code = "BTHC" + i; |
|
|
// } else if (i == 2) {
|
|
|
} |
|
|
// object.put("point_code", "FMJDJW0102");
|
|
|
JSONObject object = new JSONObject(); |
|
|
// object.put("point_name", "覆膜机对接位102");
|
|
|
object.put("point_id", IdUtil.getSnowflake(1, 1).nextId()); |
|
|
// } else if (i == 3) {
|
|
|
object.put("point_code", code); |
|
|
// object.put("point_code", "FMJDJW0201");
|
|
|
object.put("point_name", "半托缓存" + i); |
|
|
// object.put("point_name", "覆膜机对接位201");
|
|
|
object.put("region_id", "1590223846013800448"); |
|
|
// } else if (i == 4) {
|
|
|
object.put("region_code", "BZZCQ"); |
|
|
// object.put("point_code", "FMJDJW0202");
|
|
|
object.put("region_name", "包装暂存区"); |
|
|
// object.put("point_name", "覆膜机对接位202");
|
|
|
object.put("lock_type", "1"); |
|
|
// }
|
|
|
object.put("vehicle_max_qty", "0"); |
|
|
// object.put("region_id", "1593073159588941824");
|
|
|
object.put("vehicle_qty", "0"); |
|
|
// object.put("region_code", "FMQ");
|
|
|
object.put("create_id", SecurityUtils.getCurrentUserId()); |
|
|
// object.put("region_name", "覆膜区");
|
|
|
object.put("update_optid", SecurityUtils.getCurrentUserId()); |
|
|
// object.put("lock_type", "1");
|
|
|
object.put("create_name", SecurityUtils.getCurrentNickName()); |
|
|
// object.put("vehicle_max_qty", "0");
|
|
|
object.put("update_optname", SecurityUtils.getCurrentNickName()); |
|
|
// object.put("vehicle_qty", "0");
|
|
|
object.put("create_time", DateUtil.now()); |
|
|
// object.put("create_id", SecurityUtils.getCurrentUserId());
|
|
|
object.put("update_time", DateUtil.now()); |
|
|
// object.put("update_optid", SecurityUtils.getCurrentUserId());
|
|
|
sch_base_point.insert(object); |
|
|
// object.put("create_name", SecurityUtils.getCurrentNickName());
|
|
|
} |
|
|
// object.put("update_optname", SecurityUtils.getCurrentNickName());
|
|
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
|
|
// object.put("create_time", DateUtil.now());
|
|
|
} |
|
|
// object.put("update_time", DateUtil.now());
|
|
|
|
|
|
// sch_base_point.insert(object);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
|
|
|
|
|
// }
|
|
|
|
|
|
} |
|
|
} |
|
|