mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ public class OrderSaveReqVO {
|
||||
private String apiOrderId;
|
||||
|
||||
@Schema(description = "生产单日期", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "交付日期不能为空")
|
||||
@NotNull(message = "生产单日期不能为空")
|
||||
private LocalDateTime orderDate;
|
||||
|
||||
@Schema(description = "交付日期", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
||||
+24
-28
@@ -882,19 +882,6 @@ public class ApiTypeRealize {
|
||||
Long organId) {
|
||||
// System.out.println("开始时间 :" + System.currentTimeMillis());
|
||||
|
||||
if (platesJSONObject == null || platesJSONObject.isEmpty()) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
if (blocksJSONObject == null || blocksJSONObject.isEmpty()) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
// 板材数据
|
||||
Map<String, JSONObject> blocksMap = getBlocksData(blocksJSONObject);
|
||||
|
||||
|
||||
JSONArray plateLists = platesJSONObject.getJSONObject(ProduceApiConstants.VALUE).getJSONArray(ProduceApiConstants.LIST);
|
||||
// System.out.println(" 长度 " + plateLists.size());
|
||||
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
Map<String, PlateDO> partsInfos = new HashMap<>();
|
||||
List<PlateDO> plateList = new ArrayList<>();
|
||||
@@ -909,6 +896,29 @@ public class ApiTypeRealize {
|
||||
Map<String, Integer> totalPlateCountMapToGroup = new HashMap<>();
|
||||
Map<String, Integer> irregularPlateCountMapToGroup = new HashMap<>();
|
||||
|
||||
map.put(FieldConstants.PLATE, partsInfos);
|
||||
map.put(FieldConstants.ITEM, platesItem);
|
||||
|
||||
map.put(BODY_PLATE_NUMBER , totalPlateCountMapToBody);
|
||||
map.put(BODY_IRREGULAR_PLATE_NUMBER , irregularPlateCountMapToBody);
|
||||
map.put(GROUP_PLATE_NUMBER , totalPlateCountMapToGroup);
|
||||
map.put(GROUP_IRREGULAR_PLATE_NUMBER , irregularPlateCountMapToGroup);
|
||||
map.put(PLATE_DETAILS_REMARKS, plateDetailMap);
|
||||
|
||||
if (platesJSONObject == null || platesJSONObject.isEmpty()) {
|
||||
return map;
|
||||
}
|
||||
if (blocksJSONObject == null || blocksJSONObject.isEmpty()) {
|
||||
return map;
|
||||
}
|
||||
// 板材数据
|
||||
Map<String, JSONObject> blocksMap = getBlocksData(blocksJSONObject);
|
||||
|
||||
|
||||
JSONArray plateLists = platesJSONObject.getJSONObject(ProduceApiConstants.VALUE).getJSONArray(ProduceApiConstants.LIST);
|
||||
|
||||
|
||||
|
||||
for (int i = 0; i < plateLists.size(); i++) {
|
||||
|
||||
long plateNo = idWorker.nextId();
|
||||
@@ -1037,22 +1047,8 @@ public class ApiTypeRealize {
|
||||
|
||||
|
||||
|
||||
map.put(FieldConstants.PLATE, partsInfos);
|
||||
map.put(FieldConstants.ITEM, platesItem);
|
||||
|
||||
map.put(BODY_PLATE_NUMBER , totalPlateCountMapToBody);
|
||||
map.put(BODY_IRREGULAR_PLATE_NUMBER , irregularPlateCountMapToBody);
|
||||
map.put(GROUP_PLATE_NUMBER , totalPlateCountMapToGroup);
|
||||
map.put(GROUP_IRREGULAR_PLATE_NUMBER , irregularPlateCountMapToGroup);
|
||||
map.put(PLATE_DETAILS_REMARKS, plateDetailMap);
|
||||
// System.out.println(
|
||||
// " platesItem " + platesItem.size() +
|
||||
// " totalPlateCountMapToBody " + totalPlateCountMapToBody.size() +
|
||||
// " irregularPlateCountMapToBody " + irregularPlateCountMapToBody.size() +
|
||||
// " totalPlateCountMapToGroup " + totalPlateCountMapToGroup.size() +
|
||||
// " irregularPlateCountMapToGroup " + irregularPlateCountMapToGroup.size() +
|
||||
// " plateDetailMap " + plateDetailMap.size()
|
||||
// );
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user