From e2c2cb3fa2964e21cb7ebf0e8e092f621c235d73 Mon Sep 17 00:00:00 2001 From: yangyang Date: 星期四, 17 七月 2025 14:36:09 +0800 Subject: [PATCH] no message --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java | 53 ++++++++++++++++++++++++++++------------------------- 1 files changed, 28 insertions(+), 25 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..69f382c 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 @@ -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; @@ -438,12 +441,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