From 05b8ccfc9eeadddd65e95ea82479c224d1516b4c Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 07 八月 2025 19:19:33 +0800
Subject: [PATCH] no message

---
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java |   61 ++++++++++++++++--------------
 1 files changed, 33 insertions(+), 28 deletions(-)

diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
index effb1d3..d02c846 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
@@ -126,7 +126,7 @@
 
         //缁勬嫋閫氱煡妗�
         waitPakins.forEach(pakin -> {
-            waitPakinService.comb(pakin);
+            waitPakinService.comb(pakin, ordersParam.getInType());
         });
 
 
@@ -373,27 +373,30 @@
                 }
             }
         });
+        
+        //鍒ゆ柇鏄惁涓烘尝娆″崟鎹�
+        if (pickSheet.getType().equals(1)) {
+            //鍒犻櫎娉㈡鍙婂搴旀槑缁嗕俊鎭�
+            if (!waveService.remove(new LambdaQueryWrapper<Wave>().eq(Wave::getId, pickSheet.getWaveId()))) {
+                throw new CoolException("娉㈡鍒楄〃鍗曟嵁鍒犻櫎澶辫触锛侊紒");
+            }
 
-        //鍒犻櫎娉㈡鍙婂搴旀槑缁嗕俊鎭�
-        if (!waveService.remove(new LambdaQueryWrapper<Wave>().eq(Wave::getId, pickSheet.getWaveId()))) {
-            throw new CoolException("娉㈡鍒楄〃鍗曟嵁鍒犻櫎澶辫触锛侊紒");
-        }
+            if (!waveDetlService.remove(new LambdaQueryWrapper<WaveDetl>().eq(WaveDetl::getWaveId, pickSheet.getWaveId()))) {
+                throw new CoolException("娉㈡鏄庣粏鍒楄〃鍒犻櫎澶辫触锛侊紒");
+            }
 
-        if (!waveDetlService.remove(new LambdaQueryWrapper<WaveDetl>().eq(WaveDetl::getWaveId, pickSheet.getWaveId()))) {
-            throw new CoolException("娉㈡鏄庣粏鍒楄〃鍒犻櫎澶辫触锛侊紒");
-        }
-
-        List<Order> orders = orderService.list(new LambdaQueryWrapper<Order>().eq(Order::getWaveId, pickSheet.getWaveId()));
-        if (orders.isEmpty()) {
-            throw new CoolException("娉㈡璁㈠崟涓嶅瓨鍦紒锛�");
-        }
-        List<Long> list = orders.stream().map(Order::getId).collect(Collectors.toList());
-        boolean remove = orderDetlService.remove(new LambdaQueryWrapper<OrderDetl>().in(OrderDetl::getOrderId, list));
-        if (!remove) {
-            throw new CoolException("鍘熷璁㈠崟鏄庣粏鍒犻櫎澶辫触锛侊紒");
-        }
-        if (!orderService.remove(new LambdaQueryWrapper<Order>().in(Order::getId, list))) {
-            throw new CoolException("鍘熷璁㈠崟鍒犻櫎澶辫触锛侊紒");
+            List<Order> orders = orderService.list(new LambdaQueryWrapper<Order>().eq(Order::getWaveId, pickSheet.getWaveId()));
+            if (orders.isEmpty()) {
+                throw new CoolException("娉㈡璁㈠崟涓嶅瓨鍦紒锛�");
+            }
+            List<Long> list = orders.stream().map(Order::getId).collect(Collectors.toList());
+            boolean remove = orderDetlService.remove(new LambdaQueryWrapper<OrderDetl>().in(OrderDetl::getOrderId, list));
+            if (!remove) {
+                throw new CoolException("鍘熷璁㈠崟鏄庣粏鍒犻櫎澶辫触锛侊紒");
+            }
+            if (!orderService.remove(new LambdaQueryWrapper<Order>().in(Order::getId, list))) {
+                throw new CoolException("鍘熷璁㈠崟鍒犻櫎澶辫触锛侊紒");
+            }
         }
 
         return true;
@@ -418,7 +421,8 @@
     @Override
     @Transactional(rollbackFor = Exception.class)
     public boolean bindOrderBySite(Map<String, Object> param) {
-        CacheSite siteNo = cacheSiteMapper.selectOne(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getSiteNo, param.get("siteNo")), false);
+        CacheSite siteNo = cacheSiteMapper.selectOne(new LambdaQueryWrapper<CacheSite>()
+                .eq(CacheSite::getSiteNo, param.get("siteNo")), false);
         if (Objects.isNull(siteNo)) {
             throw new CoolException("绔欑偣寮傚父锛侊紒");
         }
@@ -426,7 +430,8 @@
             if (!StringUtil.isNullOrEmpty(siteNo.getOrderNo())) {
                 throw new CoolException("褰撳墠鎾绔欑偣宸茬粦瀹氳鍗曪紒锛�");
             }
-            Order order = orderService.getOne(new LambdaQueryWrapper<Order>().eq(Order::getOrderNo, param.get("orderNo").toString()));
+            Order order = orderService.getOne(new LambdaQueryWrapper<Order>()
+                    .eq(Order::getOrderNo, param.get("orderNo").toString()));
             if (Objects.isNull(order)) {
                 throw new CoolException("缁戝畾璁㈠崟涓嶅瓨鍦紒锛�");
             }
@@ -438,12 +443,12 @@
                 throw new CoolException("璁㈠崟鎾浣嶇粦瀹氬け璐ワ紒锛�");
             }
 
-            if (!waveSeedMapper.update(new LambdaUpdateWrapper<WaveSeed>()
-                    .eq(WaveSeed::getOrderNo, order.getOrderNo())
-                    .set(WaveSeed::getSiteId, siteNo.getId())
-                    .set(WaveSeed::getSiteNo, siteNo.getSiteNo()))) {
-                throw new CoolException("鎾绔欑偣鏇存柊澶辫触锛侊紒");
-            }
+//            if (!waveSeedMapper.update(new LambdaUpdateWrapper<WaveSeed>()
+//                    .eq(WaveSeed::getOrderNo, order.getOrderNo())
+//                    .set(WaveSeed::getSiteId, siteNo.getId())
+//                    .set(WaveSeed::getSiteNo, siteNo.getSiteNo()))) {
+//                throw new CoolException("鎾绔欑偣鏇存柊澶辫触锛侊紒");
+//            }
             //缁戝畾鎴愬姛锛屾挱绉嶅浜伅
             sowLightMange(siteNo.getSiteNo(), order, "LIGHT");
         } else {

--
Gitblit v1.9.1