1.修复部分bug

master
x_z 2 years ago
parent 16455b0136
commit 4a3aec70df

@ -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();

@ -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())

Loading…
Cancel
Save