|
@@ -167,6 +167,8 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
private WorkFlowServiceImpl workFlowService;
|
|
|
@Autowired
|
|
|
private SysGeneralCRUDService sysGeneralCRUDService;
|
|
|
+ @Autowired
|
|
|
+ private ApsCustomerManagementService apsCustomerManagementService;
|
|
|
|
|
|
|
|
|
public static final String ERROR_MSG = "%s上诉订单的排程交货期大于承诺交货期";
|
|
@@ -1215,6 +1217,7 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
String orderno = StringUtils.isNotBlank(orderDo.getOrderno()) ? orderDo.getOrderno() : "";
|
|
|
String customorderno = StringUtils.isNotBlank(orderDo.getCustomorderno()) ? orderDo.getCustomorderno() : "";
|
|
|
String customname = StringUtils.isNotBlank(orderDo.getCustomname()) ? orderDo.getCustomname() : "";
|
|
|
+ String customId = StringUtils.isNotBlank(orderDo.getCustomid()) ? orderDo.getCustomid() : "";
|
|
|
List<String> blankIdList = apsBlankOrderDoList.stream().map(ApsBlankOrderDo::getId).collect(Collectors.toList());
|
|
|
if (!blankIdList.isEmpty()) {
|
|
|
List<ApsProcessOutputProductDo> apsProcessOutputProductDoList = apsProcessOutputProductService.list(new LambdaQueryWrapper<ApsProcessOutputProductDo>().in(ApsProcessOutputProductDo::getBlankid, blankIdList));
|
|
@@ -1243,13 +1246,18 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
} else {
|
|
|
needUpdateOutProduct.setOrderno(apsProductionMergeOrderDo.getOrderno());
|
|
|
needUpdateOutProduct.setCustomname(apsProductionMergeOrderDo.getCustomname());
|
|
|
+ customId = apsProductionMergeOrderDo.getCustomid();
|
|
|
}
|
|
|
} else {
|
|
|
needUpdateOutProduct.setCustomorderno(customorderno);
|
|
|
needUpdateOutProduct.setOrderno(orderno);
|
|
|
needUpdateOutProduct.setCustomname(customname);
|
|
|
}
|
|
|
-
|
|
|
+ }
|
|
|
+ //客户ID不为空,查询客户简称赋值
|
|
|
+ if (StringUtils.isNotBlank(customId)) {
|
|
|
+ ApsCustomerManagementDo apsCustomerManagementDo = apsCustomerManagementService.getById(customId);
|
|
|
+ needUpdateOutProduct.setCustomeasyname(apsCustomerManagementDo.getCustomerabbreviation());
|
|
|
}
|
|
|
needUpdateOutProductList.add(needUpdateOutProduct);
|
|
|
}
|
|
@@ -1261,11 +1269,13 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
String orderNos = apsProcessOutputProductDos.stream().map(ApsProcessOutputProductDo::getOrderno).distinct().collect(Collectors.joining(","));
|
|
|
String customOrderNos = apsProcessOutputProductDos.stream().map(ApsProcessOutputProductDo::getCustomorderno).distinct().collect(Collectors.joining(","));
|
|
|
String customNames = apsProcessOutputProductDos.stream().map(ApsProcessOutputProductDo::getCustomname).distinct().collect(Collectors.joining(","));
|
|
|
+ String customEasyNames = apsProcessOutputProductDos.stream().map(ApsProcessOutputProductDo::getCustomeasyname).distinct().collect(Collectors.joining(","));
|
|
|
ApsBlankOrderDo needUpdateBlank = new ApsBlankOrderDo();
|
|
|
needUpdateBlank.setId(key);
|
|
|
needUpdateBlank.setOrderno(orderNos);
|
|
|
needUpdateBlank.setCustomorderno(customOrderNos);
|
|
|
needUpdateBlank.setCustomname(customNames);
|
|
|
+ needUpdateBlank.setCustomeasyname(customEasyNames);
|
|
|
needUpdateBlankList.add(needUpdateBlank);
|
|
|
}
|
|
|
//更新输出成品集合和坯料计划集合
|