diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java index 6fa74a6..013d4e7 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java @@ -251,7 +251,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService if (bomCount > 0) { wmsBaseKnife.setZdTaskId(zdTask.getWmsZdTaskId()); wmsBaseKnife.setIsLocked(1); - wmsBaseKnife.setKnifeFineState(1); + wmsBaseKnife.setKnifeFineState(2); wmsBaseKnife.setLockedStartTime(technologyBom.getLockedStartTime()); wmsBaseKnife.setLockedEndTime(technologyBom.getLockedEndTime()); wmsBaseKnife.setParentId(baseKnife.getBaseKnifeId()); @@ -521,7 +521,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService } String batchNum = "SCZBPC01"; - // 出库任务,进行基础物料的出库 + // 出库任务,进行整刀的出库 HashMap>> baseKnifeHashMapMap = new HashMap<>(); // 遍历构建map @@ -534,6 +534,10 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService // 对当前台账对象进行收录 baseKnifeHashMapMap.get(item.getMbbBdMrlId()).get(item.getAreaCode()).add(item); + + // 修改出库状态 + item.setKnifeFineState(2); + baseKnifeMapper.updateBaseKnife(item); }); // 生成出库计划明细