From 2dbf545fbbf53e192cec44ac4f74b6ac20af8b79 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Wed, 15 Nov 2023 11:08:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=AB=E6=8F=8F=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appcontroller/DistributionStockupAppController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java index dadf6c5c5..4108663e3 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java @@ -756,13 +756,14 @@ public class DistributionStockupAppController extends BladeController { .eq(DistributionParcelListEntity::getWarehouseId, byId.getWarehouseId()) ); if(ObjectUtils.isNotNull(list) && list.size() > 1){ - throw new ServiceException("查询到重复包条信息!!"); + return Resp.scanFail("查询到重复包条信息!!","查询到重复包条信息!!"); } if(ObjectUtils.isNull(list)){ - throw new ServiceException("没有查询到包件信息"); + return Resp.scanFail("没有查询到包件信息 ! ","没有查询到包件信息 ! "); } if(!list.get(0).getConditions().equals("2")){ - throw new ServiceException("当前包件不是库存品,无法备货!!"); + return Resp.scanFail("当前包件不是库存品,无法备货!!","当前包件不是库存品,无法备货!!"); + } WarehouseUpdownGoodsEntity warehouseUpdownGoodsEntity = new WarehouseUpdownGoodsEntity(); warehouseUpdownGoodsEntity.setAllocationId(stockupDTO.getAllocationId());