change - 下达计划加工位

master
yinq 7 months ago
parent 88478fb8cb
commit 07125537e1

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

Loading…
Cancel
Save