diff --git a/src/main/java/com/glxp/udi/admin/controller/auth/CustomerController.java b/src/main/java/com/glxp/udi/admin/controller/auth/CustomerController.java index 5e7c86a..91be859 100644 --- a/src/main/java/com/glxp/udi/admin/controller/auth/CustomerController.java +++ b/src/main/java/com/glxp/udi/admin/controller/auth/CustomerController.java @@ -78,7 +78,7 @@ public class CustomerController { if (bindingResult.hasErrors()) { return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); } - if (customerDetailEntity.getUserMax() < 0) { + if (customerDetailEntity.getUserMax() <= 0) { return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "最大用户数不能小于0"); } CustomerInfoEntity customerInfoEntity = new CustomerInfoEntity(); diff --git a/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java b/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java index da9bc43..7a7acfb 100644 --- a/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java +++ b/src/main/java/com/glxp/udi/admin/service/inventory/InvWarehouseService.java @@ -65,7 +65,7 @@ public class InvWarehouseService { .eq(null != filterInvWarehouseRequest.getId(), "id", filterInvWarehouseRequest.getId()) .eq(null != filterInvWarehouseRequest.getPid(), "pid", filterInvWarehouseRequest.getPid()) .eq(StrUtil.isNotBlank(filterInvWarehouseRequest.getCode()), "code", filterInvWarehouseRequest.getCode()) - .eq(StrUtil.isNotBlank(filterInvWarehouseRequest.getName()), "name", filterInvWarehouseRequest.getName()) + .like(StrUtil.isNotBlank(filterInvWarehouseRequest.getName()), "name", filterInvWarehouseRequest.getName()) .eq(null != filterInvWarehouseRequest.getAdvanceType(), "advanceType", filterInvWarehouseRequest.getAdvanceType()) .eq(null != filterInvWarehouseRequest.getStatus(), "status", filterInvWarehouseRequest.getStatus()) .eq(null != filterInvWarehouseRequest.getIsDefault(), "isDefault", filterInvWarehouseRequest.getIsDefault())