Showing
1 changed file
with
5 additions
and
0 deletions
| ... | ... | @@ -887,6 +887,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 887 | 887 | if (CollectionUtils.isEmpty(orderLineList)) { |
| 888 | 888 | throw new DefaultClientException("订货单物料行数据不存在!"); |
| 889 | 889 | } |
| 890 | + List<String> proProcessList = new ArrayList<>(); | |
| 890 | 891 | String orderingUnit = orderInfo.getOrderingUnit(); |
| 891 | 892 | String workshopId = orderInfo.getWorkshopId(); |
| 892 | 893 | for (PurchaseOrderLine orderLine : orderLineList) { |
| ... | ... | @@ -917,9 +918,13 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 917 | 918 | String proProcess = getBaseMapper().queryHisProProcess(params); |
| 918 | 919 | if (StringUtils.isNotBlank(proProcess)) { |
| 919 | 920 | orderLine.setProductionProcess(proProcess); |
| 921 | + proProcessList.add(proProcess); | |
| 920 | 922 | } |
| 921 | 923 | } |
| 922 | 924 | orderInfo.setPurchaseOrderLineList(orderLineList); |
| 925 | + if (CollectionUtils.isNotEmpty(proProcessList)) { | |
| 926 | + orderInfo.setProductionProcess(String.join("\n\n", proProcessList)); | |
| 927 | + } | |
| 923 | 928 | |
| 924 | 929 | return orderInfo; |
| 925 | 930 | } | ... | ... |