diff --git a/src/main/java/com/glxp/api/controller/thrsys/ThrInvWarehouseController.java b/src/main/java/com/glxp/api/controller/thrsys/ThrInvWarehouseController.java index 0996ad1d1..eb189a47b 100644 --- a/src/main/java/com/glxp/api/controller/thrsys/ThrInvWarehouseController.java +++ b/src/main/java/com/glxp/api/controller/thrsys/ThrInvWarehouseController.java @@ -110,7 +110,7 @@ public class ThrInvWarehouseController { filterThrSubInvWarehouseRequest.setName(invSubWarehouseEntity.getName()); filterThrSubInvWarehouseRequest.setCode(null); List thrInvWarehouseEntities1 = thrInvWarehouseService.filterThrInvWarehouse(filterThrSubInvWarehouseRequest); - if(thrInvWarehouseEntities.size()==0 && thrInvWarehouseEntities1.size()==0){ + if(thrInvWarehouseEntities.size()==0 || thrInvWarehouseEntities1.size()==0){ boolean b = thrInvWarehouseService.updateThrInvWarehouse(invSubWarehouseEntity); if (!b) { return ResultVOUtils.error(ResultEnum.NOT_NETWORK);