diff --git a/aucma-production/src/main/java/com/aucma/production/service/impl/ProductPlanInfoServiceImpl.java b/aucma-production/src/main/java/com/aucma/production/service/impl/ProductPlanInfoServiceImpl.java index 15a831d..1c50739 100644 --- a/aucma-production/src/main/java/com/aucma/production/service/impl/ProductPlanInfoServiceImpl.java +++ b/aucma-production/src/main/java/com/aucma/production/service/impl/ProductPlanInfoServiceImpl.java @@ -154,7 +154,7 @@ public class ProductPlanInfoServiceImpl implements IProductPlanInfoService { } } } - + //二线 if (StringUtils.isNotEmpty(baseOrderInfo.getWorkCenterCode()) && baseOrderInfo.getWorkCenterCode().equals("3103")) { for (BaseBomInfo baseBomInfo : baseBomInfos) { if (baseBomInfo.getMaterialType().equals(MaterialConstants.COAMING_MATERIAL_TYPE)) { @@ -177,8 +177,11 @@ public class ProductPlanInfoServiceImpl implements IProductPlanInfoService { planInfo.setSaleorderLinenumber(saleOrderLineNumber); planInfo.setMaterialCode(baseBomInfo.getMaterialCode()); planInfo.setMaterialName(baseBomInfo.getMaterialName()); - planInfo.setProductLineCode("1005");// 箱体发泡 planInfo.setPlanAmount(baseBomInfo.getStandardAmount().longValue() * orderAmount.longValue()); + planInfo.setProductLineCode("1002");// 胆、壳组装 + this.insertProductPlanInfo(planInfo); + planInfo.setPlanCode(PlanCodeUtils.getPlanCode()); + planInfo.setProductLineCode("1005");// 箱体发泡 this.insertProductPlanInfo(planInfo); planInfo.setPlanCode(PlanCodeUtils.getPlanCode()); planInfo.setProductLineCode("1006");// 泡后库