refactor: 入库之后台账更新库位

This commit is contained in:
Kelvin 2024-12-19 10:58:27 +08:00
parent d8357ea130
commit 4f77b1921d

View File

@ -249,6 +249,9 @@ public class WmsInTaskController extends BaseController {
baseKnife.setKnifeFineState(1); baseKnife.setKnifeFineState(1);
// 状态为生效 // 状态为生效
baseKnife.setIsValid(0); baseKnife.setIsValid(0);
// 设置库位信息
baseKnife.setAreaCode(wmStorageArea.getAreaCode());
baseKnife.setAreaName(wmStorageArea.getAreaName());
// 更新台账状态 // 更新台账状态
baseKnifeService.updateBaseKnife(baseKnife); baseKnifeService.updateBaseKnife(baseKnife);
}); });
@ -266,6 +269,9 @@ public class WmsInTaskController extends BaseController {
baseKnife.setKnifeFineState(1); baseKnife.setKnifeFineState(1);
// 状态为生效 // 状态为生效
baseKnife.setIsValid(0); baseKnife.setIsValid(0);
// 设置库位信息
baseKnife.setAreaCode(wmStorageArea.getAreaCode());
baseKnife.setAreaName(wmStorageArea.getAreaName());
// 更新台账状态 // 更新台账状态
baseKnifeService.updateBaseKnife(baseKnife); baseKnifeService.updateBaseKnife(baseKnife);
}); });