From c349a2a5dddfa4d7e6a5c834f757607c39f8bfd6 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 11 十一月 2024 13:56:37 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
index 2c35100..6ff35f8 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -816,6 +816,13 @@
     public void leftoversOut(Map<String, Object> map,Long userId) {
         String barcode = map.get("barcode").toString();
         String barcode2 = map.get("barcode2").toString();
+
+        int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet",barcode2));
+        int countWrk = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("zpallet",barcode2).ne("io_type",200));
+        int countwait = waitPakinService.selectCount(new EntityWrapper<WaitPakin>().eq("zpallet",barcode2));
+        if (countLoc > 0 || countWrk > 0 || countwait > 0) {
+            throw new CoolException("璇ユ潯鐮佸凡琚娇鐢�===>>" + barcode2);
+        }
         WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("barcode", barcode).eq("io_type", 103));
         if (Cools.isEmpty(wrkMast)) {
             throw new CoolException("鏈煡璇㈠埌鎷f枡浠诲姟");

--
Gitblit v1.9.1