生产准备优化
This commit is contained in:
parent
d2ec3f0d79
commit
3d9d42019f
@ -476,7 +476,9 @@ public class BaseKnifeController extends BaseController {
|
|||||||
|
|
||||||
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
||||||
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
||||||
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + techBom.getKnifeCount());
|
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + lockedBaseKnifeIds.size());
|
||||||
|
|
||||||
|
msg = msg + "【已预订" + lockedBaseKnifeIds.size() + "把整刀】";
|
||||||
} else {
|
} else {
|
||||||
operLog.setJsonResult("基础物料不足进行组装工具:" + techBom.getKnifeCode());
|
operLog.setJsonResult("基础物料不足进行组装工具:" + techBom.getKnifeCode());
|
||||||
operLogService.insertOperlog(operLog);
|
operLogService.insertOperlog(operLog);
|
||||||
@ -485,7 +487,7 @@ public class BaseKnifeController extends BaseController {
|
|||||||
} else {
|
} else {
|
||||||
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
||||||
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
||||||
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + techBom.getKnifeCount());
|
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + knifeNeedQuantity);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
operLog.setJsonResult("暂无记录整刀bom项:" + techBom.getKnifeCode());
|
operLog.setJsonResult("暂无记录整刀bom项:" + techBom.getKnifeCode());
|
||||||
@ -561,7 +563,9 @@ public class BaseKnifeController extends BaseController {
|
|||||||
|
|
||||||
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
||||||
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
||||||
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + techBom.getKnifeCount());
|
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + lockedBaseKnifeIds.size());
|
||||||
|
|
||||||
|
msg = msg + "【已预订" + lockedBaseKnifeIds.size() + "把整刀】";
|
||||||
} else {
|
} else {
|
||||||
operLog.setJsonResult("基础物料不足进行组装工具:" + techBom.getKnifeCode());
|
operLog.setJsonResult("基础物料不足进行组装工具:" + techBom.getKnifeCode());
|
||||||
operLogService.insertOperlog(operLog);
|
operLogService.insertOperlog(operLog);
|
||||||
@ -570,7 +574,7 @@ public class BaseKnifeController extends BaseController {
|
|||||||
} else {
|
} else {
|
||||||
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
// 更新需要组装的数量 和 生产准备中已准备好的数量
|
||||||
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
zdTaskMap.put(techBom.getKnifeCode(), knifeHaveQuantity);
|
||||||
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + knifeCount.get());
|
countMap.put(techBom.getKnifeCode(), countMap.get(techBom.getKnifeCode()) + knifeNeedQuantity);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
operLog.setJsonResult("暂无记录整刀bom项:" + techBom.getKnifeCode());
|
operLog.setJsonResult("暂无记录整刀bom项:" + techBom.getKnifeCode());
|
||||||
@ -617,7 +621,7 @@ public class BaseKnifeController extends BaseController {
|
|||||||
productionArrangements.setCreateTime(DateUtils.getNowDate());
|
productionArrangements.setCreateTime(DateUtils.getNowDate());
|
||||||
productionArrangementsMapper.insertProductionArrangements(productionArrangements);
|
productionArrangementsMapper.insertProductionArrangements(productionArrangements);
|
||||||
|
|
||||||
if (!msg.contains("缺少物料已生成组装任务!")) {
|
if (!msg.contains("缺少物料已生成组装任务!") && !msg.contains("已预订")) {
|
||||||
// 生成出库计划单
|
// 生成出库计划单
|
||||||
WmsOutPlan outPlan = new WmsOutPlan();
|
WmsOutPlan outPlan = new WmsOutPlan();
|
||||||
outPlan.setPlanCode(productionArrangements.getPlanSheet());
|
outPlan.setPlanCode(productionArrangements.getPlanSheet());
|
||||||
|
Loading…
Reference in New Issue
Block a user