From 603aea25675d6acc5daeecc8244a1d8eb626d2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=8D=E5=96=9C?= Date: Thu, 28 Nov 2024 18:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ktg/mes/md/controller/WmsOutPlanController.java | 1 + .../java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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()); } // 开始遍历出库计划子项