diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java index 3686f88..a930cb3 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java @@ -49,6 +49,7 @@ public class WmsOutPlanController extends BaseController { @PreAuthorize("@ss.hasPermi('md:PLAN:list')") @GetMapping("/list") public TableDataInfo list(WmsOutPlan wmsOutPlan) { + wmsOutPlanService.synchronizationMiniBox(getUsername()); // 调试 startPage(); List list = wmsOutPlanService.selectWmsOutPlanList(wmsOutPlan); return getDataTable(list); diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java index caa2305..6997dda 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java @@ -343,7 +343,7 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService { // 校验库中数量是否足够 if (baseKnifeList.size() < wmsOutPlanDetail.getPlannedQuantity()) { - throw new RuntimeException("库存数量不足以支持本次出库"); + throw new RuntimeException("库存数量不足以支持本次出库物料:" + ap0AE.getAE015()); } // 开始遍历出库计划子项