Merge remote-tracking branch 'origin/main'

This commit is contained in:
gaoqr
2025-01-14 11:32:45 +08:00
3 changed files with 27 additions and 31 deletions
@@ -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)
@@ -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;
}
@@ -84,7 +84,7 @@ public class RemainPlateSaveReqVO {
private Integer placeStyle;
@Schema(description = "仓库名")
@Size(max = 64, message = "品牌长度不能超过64个字符")
@Size(max = 64, message = "仓库名长度不能超过64个字符")
private String store;
@Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "18318")
@@ -92,7 +92,7 @@ public class RemainPlateSaveReqVO {
private Integer count;
@Schema(description = "备注", example = "随便")
@Size(max = 255, message = "品牌长度不能超过255个字符")
@Size(max = 255, message = "备注长度不能超过255个字符")
private String remark;
@Schema(description = "轮廊数据,Json 串", requiredMode = Schema.RequiredMode.REQUIRED, example = "18318")