diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java index de7336a..cb795fe 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java @@ -249,6 +249,9 @@ public class WmsInTaskController extends BaseController { baseKnife.setKnifeFineState(1); // 状态为生效 baseKnife.setIsValid(0); + // 设置库位信息 + baseKnife.setAreaCode(wmStorageArea.getAreaCode()); + baseKnife.setAreaName(wmStorageArea.getAreaName()); // 更新台账状态 baseKnifeService.updateBaseKnife(baseKnife); }); @@ -266,6 +269,9 @@ public class WmsInTaskController extends BaseController { baseKnife.setKnifeFineState(1); // 状态为生效 baseKnife.setIsValid(0); + // 设置库位信息 + baseKnife.setAreaCode(wmStorageArea.getAreaCode()); + baseKnife.setAreaName(wmStorageArea.getAreaName()); // 更新台账状态 baseKnifeService.updateBaseKnife(baseKnife); });