修复修复物料状态

This commit is contained in:
Stang 2024-11-18 16:12:00 +08:00
parent 67debb35c8
commit 058e9db114

View File

@ -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<Long, HashMap<String, List<BaseKnife>>> 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);
});
// 生成出库计划明细