From 9705df6be27a2240669935690c7db1f0365ec2c1 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 16:05:30 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=94=B9=E5=8F=98=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml b/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml index 17540f0..9e77fd9 100644 --- a/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml +++ b/ktg-mes/src/main/resources/mapper/md/AP0AEMapper.xml @@ -107,6 +107,7 @@ + + where UDF01 != 'ED' + AND AD011 IS NOT NULL + AND AD008 > 0 + AND AD005 IS NOT NULL + + + + update AP0AD + set UDF01 = 'ED' + where AD001 = #{AD001} + AND AD002 = #{AD002} + AND AD003 = #{AD003} + AND AD004 = #{AD004} + + \ No newline at end of file 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 6/6] =?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()); } // 开始遍历出库计划子项