From b5469d0cc19bd1b34c05efd0aa457a544714cf6c Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Tue, 5 Nov 2024 20:43:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E9=87=8D=E5=A4=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicdata/controller/BasicdataWarehouseController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java index c5760ad5a..4075dde2a 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataWarehouseController.java @@ -227,11 +227,10 @@ public class BasicdataWarehouseController extends BladeController { List warehouseList = warehouseService.list(); List names = warehouseList.stream().filter(warehouseEntity -> warehouseEntity.getName().equals(warehouseWarehouse.getName())).collect(Collectors.toList()); - List codes = warehouseList.stream().filter(warehouseEntity -> warehouseEntity.getCode().equals(warehouseWarehouse.getCode())).collect(Collectors.toList()); + List codes = warehouseList.stream().filter(warehouseEntity -> warehouseEntity.getWarehouseCode().equals(warehouseWarehouse.getWarehouseCode())).collect(Collectors.toList()); if(!names.isEmpty()){ throw new CustomerException("仓库名称重复,请重新输入"); } - if(!codes.isEmpty()){ throw new CustomerException("仓库编号重复,请重新输入"); }