|
@@ -287,11 +287,10 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
|
|
|
if (req.getIsNeedPublish()) {
|
|
|
//=============发布排程================
|
|
|
- List<String> productOrderIdList = new LinkedList<>();
|
|
|
- productOrderIdList.add(apsProductionOrderDo.getId());
|
|
|
- R publish = this.publish(productOrderIdList);
|
|
|
+ List<String> blankIds = apsBlankOrderDoList.stream().map(ApsBlankOrderDo::getId).collect(Collectors.toList());
|
|
|
+ R publish = apsBlankOrderService.publish(blankIds);
|
|
|
if (!publish.getCode().equals("200")) {
|
|
|
- return R.error(publish.getMsg());
|
|
|
+ throw new RuntimeException(publish.getMsg());
|
|
|
}
|
|
|
}
|
|
|
|