From 760b4f0509bbdc0605ea51060f4b844b315b625f Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 06 五月 2025 15:45:42 +0800 Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop --- rsf-server/src/main/java/com/vincent/rsf/server/manager/service/impl/WaitPakinServiceImpl.java | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/service/impl/WaitPakinServiceImpl.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/service/impl/WaitPakinServiceImpl.java index d236929..aa9d7f9 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/service/impl/WaitPakinServiceImpl.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/service/impl/WaitPakinServiceImpl.java @@ -44,7 +44,7 @@ * @param userId * @return * @author Ryan - * @description 缁勬嫋 + * @description 缁勬墭 * @time 2025/3/29 14:42 */ @Override @@ -61,13 +61,13 @@ .notIn(WaitPakin::getIoStatus, asList) .eq(WaitPakin::getBarcode, waitPakin.getBarcode())); if (!Objects.isNull(list)) { - throw new CoolException("鎷栫洏鐮侊細" + waitPakin.getBarcode() + "宸茶缁勬嫋鍗曪細" + list.getCode() + "浣跨敤锛侊紒"); + throw new CoolException("鎵樼洏鐮侊細" + waitPakin.getBarcode() + "宸茶缁勬墭鍗曪細" + list.getCode() + "浣跨敤锛侊紒"); } List<Loc> locs = locService.list(new LambdaQueryWrapper<Loc>().eq(Loc::getBarcode, waitPakin.getBarcode())); if (!locs.isEmpty()) { List<String> locCodes = locs.stream().map(Loc::getCode).collect(Collectors.toList()); String join = StringUtils.join(locCodes, ","); - throw new CoolException("鎷栫洏鐮侊細" + waitPakin.getBarcode() + "宸茶搴撲綅锛�" + join + "浣跨敤锛侊紒"); + throw new CoolException("鎵樼洏鐮侊細" + waitPakin.getBarcode() + "宸茶搴撲綅锛�" + join + "浣跨敤锛侊紒"); } double sum = waitPakin.getItems().stream().mapToDouble(PakinItem::getReceiptQty).sum(); @@ -139,7 +139,7 @@ for (PakinItem waitPakinItem : waitPakin.getItems()) { if (waitPakinItem.getTrackCode().equals(item.getTrackCode())) { if (waitPakinItem.getReceiptQty() > item.getAnfme() || waitPakinItem.getReceiptQty().compareTo(0.0) >= 0) { - throw new CoolException("缁勬嫋鏁伴噺涓嶈兘澶т簬鏀惰揣鏁伴噺锛侊紒"); + throw new CoolException("缁勬墭鏁伴噺涓嶈兘澶т簬鏀惰揣鏁伴噺锛侊紒"); } pakinItem.setAnfme(waitPakinItem.getReceiptQty()).setTrackCode(waitPakinItem.getTrackCode()); } @@ -182,7 +182,7 @@ for (PakinItem waitPakinItem : waitPakin.getItems()) { if (waitPakinItem.getTrackCode().equals(item.getTrackCode())) { if (waitPakinItem.getReceiptQty() > item.getAnfme() || waitPakinItem.getReceiptQty().compareTo(0.0) <= 0) { - throw new CoolException("缁勬嫋鏁伴噺涓嶈兘澶т簬鏀惰揣鏁伴噺涓斾笉鑳藉皬浜庨浂锛侊紒"); + throw new CoolException("缁勬墭鏁伴噺涓嶈兘澶т簬鏀惰揣鏁伴噺涓斾笉鑳藉皬浜庨浂锛侊紒"); } pakinItem.setAnfme(waitPakinItem.getReceiptQty()).setTrackCode(waitPakinItem.getTrackCode()); } @@ -195,7 +195,7 @@ double sum1 = items.stream().mapToDouble(WaitPakinItem::getAnfme).sum(); if (!waitPakinItemService.saveBatch(items)) { - throw new CoolException("缁勬嫋鏄庣粏淇濆瓨澶辫触锛侊紒"); + throw new CoolException("缁勬墭鏄庣粏淇濆瓨澶辫触锛侊紒"); } for (WaitPakinItem pakinItem : items) { @@ -218,17 +218,17 @@ waitPakin1.setAnfme(sum1); if (!this.updateById(waitPakin1)) { - throw new CoolException("缁勬嫋鏁伴噺淇敼澶辫触锛侊紒"); + throw new CoolException("缁勬墭鏁伴噺淇敼澶辫触锛侊紒"); } - //TODO 缁勬嫋瀹屾垚鍚庯紝鎵e噺鏀惰揣鍖哄簱瀛� + //TODO 缁勬墭瀹屾垚鍚庯紝鎵e噺鏀惰揣鍖哄簱瀛� return pakin; } /** * @author Ryan - * @description 缁勬嫋瑙g粦 + * @description 缁勬墭瑙g粦 * @param * @return * @time 2025/3/29 14:42 @@ -240,7 +240,7 @@ if (StringUtils.isNotBlank(barcode)) { WaitPakin waitPakins = waitPakinService.getOne(new LambdaQueryWrapper<WaitPakin>().eq(WaitPakin::getBarcode, barcode), false); if (Objects.isNull(waitPakins)) { - throw new CoolException("缁勬嫋涓嶅瓨鍦紒锛�"); + throw new CoolException("缁勬墭涓嶅瓨鍦紒锛�"); } List<PakinItem> paramItems = param.getItems(); if (Objects.isNull(paramItems) || paramItems.isEmpty()) { @@ -251,11 +251,11 @@ .eq(WaitPakinItem::getPakinId, waitPakins.getId()) .in(WaitPakinItem::getMatnrId, list)); if (pakinItems.isEmpty()) { - throw new CoolException("鏁版嵁閿欒锛氱粍鎷栨槑缁嗕笉瀛樺湪锛侊紒"); + throw new CoolException("鏁版嵁閿欒锛氱粍鎵樻槑缁嗕笉瀛樺湪锛侊紒"); } List<Long> ids = pakinItems.stream().map(WaitPakinItem::getId).collect(Collectors.toList()); if (!waitPakinItemService.removeByIds(ids)) { - throw new CoolException("缁勬嫋鏄庣粏瑙g粦澶辫触锛侊紒"); + throw new CoolException("缁勬墭鏄庣粏瑙g粦澶辫触锛侊紒"); } return waitPakins; } -- Gitblit v1.9.1