Commit 771a6af9baae02f2e27d0a436620d2d64f9df03c

Authored by 房远帅
1 parent ed47a6c4

1:订货单加一个完成日期(订货单审核通过时间) 2:发货计划表明细表按照办事处排序 3:业务员报价 协调事由 票类状况 变为可编辑;4:订货单合并相同历史工艺

@@ -926,7 +926,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde @@ -926,7 +926,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde
926 if (CollectionUtils.isEmpty(orderLineList)) { 926 if (CollectionUtils.isEmpty(orderLineList)) {
927 throw new DefaultClientException("订货单物料行数据不存在!"); 927 throw new DefaultClientException("订货单物料行数据不存在!");
928 } 928 }
929 - List<String> formattedProProcessList = new ArrayList<>(); 929 + Map<String, List<String>> processIndexMap = new LinkedHashMap<>();
930 String orderingUnit = orderInfo.getOrderingUnit(); 930 String orderingUnit = orderInfo.getOrderingUnit();
931 String workshopId = orderInfo.getWorkshopId(); 931 String workshopId = orderInfo.getWorkshopId();
932 for (int i = 0; i < orderLineList.size(); i++) { 932 for (int i = 0; i < orderLineList.size(); i++) {
@@ -958,11 +958,17 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde @@ -958,11 +958,17 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde
958 String proProcess = getBaseMapper().queryHisProProcess(params); 958 String proProcess = getBaseMapper().queryHisProProcess(params);
959 if (StringUtils.isNotBlank(proProcess)) { 959 if (StringUtils.isNotBlank(proProcess)) {
960 orderLine.setProductionProcess(proProcess); 960 orderLine.setProductionProcess(proProcess);
961 - formattedProProcessList.add(formatProcessIndex(i + 1) + proProcess); 961 + String circledIndex = formatProcessIndex(i + 1);
  962 + processIndexMap.computeIfAbsent(proProcess, k -> new ArrayList<>()).add(circledIndex);
962 } 963 }
963 } 964 }
964 orderInfo.setPurchaseOrderLineList(orderLineList); 965 orderInfo.setPurchaseOrderLineList(orderLineList);
965 - if (CollectionUtils.isNotEmpty(formattedProProcessList)) { 966 + if (!processIndexMap.isEmpty()) {
  967 + List<String> formattedProProcessList = new ArrayList<>();
  968 + for (Map.Entry<String, List<String>> entry : processIndexMap.entrySet()) {
  969 + String indexes = String.join("、", entry.getValue());
  970 + formattedProProcessList.add(indexes + entry.getKey());
  971 + }
966 orderInfo.setProductionProcess(String.join(";", formattedProProcessList) + ";"); 972 orderInfo.setProductionProcess(String.join(";", formattedProProcessList) + ";");
967 } 973 }
968 974