From 131029608a6b3703e02ef8f931a494fc6a40bd3c Mon Sep 17 00:00:00 2001 From: zhangc <zc@123> Date: 星期六, 04 一月 2025 10:22:35 +0800 Subject: [PATCH] 优化MES库存同步逻辑及AGV告警字段 --- src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java index eecfc9d..c5ff91e 100644 --- a/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java @@ -1242,6 +1242,9 @@ throw new CoolException(matnr + "鍟嗗搧缁存姢澶辫触"); } OrderDetl orderDetl = orderDetlService.selectItem(orderNo, mat.getMatnr(), batch, csocode); + if (orderDetl == null) { + throw new CoolException("璁㈠崟鏄庣粏涓嶅瓨鍦�"); + } AgvWrkDetl wrkDetl = new AgvWrkDetl(); wrkDetl.sync(mat); if (orderDetl != null) { -- Gitblit v1.9.1