From cd2f32fa59de0fb46775fa8ea6a390e531d128cf Mon Sep 17 00:00:00 2001 From: pjb <123456> Date: 星期二, 08 七月 2025 18:07:44 +0800 Subject: [PATCH] `1` --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 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 804f426..ba4967f 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 @@ -92,7 +92,9 @@ @Override @Transactional(rollbackFor = Exception.class) public boolean batchMergeOrders(BatchMergeOrdersParam ordersParam) { - Loc locServiceOne = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getBarcode, ordersParam.getMergeNo()), false); + Loc locServiceOne = locService.getOne(new LambdaQueryWrapper<Loc>() + .eq(Loc::getLocStsId, 1) + .eq(Loc::getBarcode, ordersParam.getMergeNo()), false); if (!Objects.isNull(locServiceOne)) { throw new CoolException("鎵樼洏宸插叆搴擄紝涓嶈兘鍐嶇粍鎵橈紒锛�"); } @@ -515,7 +517,7 @@ throw new CoolException("璁㈠崟鏄庣粏涓嶅瓨鍦紒锛�"); } } else { //閮ㄥ垎鎷h揣 - byId.setQty(order.getWorkQty() + byId.getQty()); + byId.setQty(Math.round((order.getWorkQty() + byId.getQty()) * 1000) / 1000.0); byId.setWorkQty(0.0); if (!orderDetlService.updateById(byId)) { throw new CoolException("閮ㄥ垎鎷f枡鏄庣粏鏇存柊澶辫触锛侊紒"); -- Gitblit v1.9.1