Browse Source

fix(sysUser): 注释掉用户校验异常逻辑

- 注释掉持有上限不能小于0的校验
- 注释掉日退上限不能小于0的校验
- 注释掉退回公海天数不能小于0的校验
- 注释掉存在相同账号时抛出异常的逻辑
zhangxf 21 hours ago
parent
commit
b6b3e2b7f5
1 changed files with 12 additions and 12 deletions
  1. 12 12
      src/main/java/com/jtzx/crm/module/sys/service/SysUserService.java

+ 12 - 12
src/main/java/com/jtzx/crm/module/sys/service/SysUserService.java

@@ -409,18 +409,18 @@ public class SysUserService {
      */
     private void checkExistence(InsertOrUpdateSysUserDTO dto) {
         SysUserEntity existingEntity = this.getUserByPin(dto.getAccount());
-        if(dto.getHoldTopCount()==null || dto.getHoldTopCount()<0){
-            throw new BusinessException(400, "持有上限不能小于0");
-        }
-        if(dto.getDayBackTopCount()==null || dto.getDayBackTopCount()<0){
-            throw new BusinessException(400, "日退上限不能小于0");
-        }
-        if(dto.getBackPublicDayCount()==null || dto.getBackPublicDayCount()<0){
-            throw new BusinessException(400, "退回公海天数不能小于0");
-        }
-        if (existingEntity != null && !existingEntity.getId().equals(dto.getId())) {
-            throw new BusinessException(400, "已存在相同账号,请重新输入");
-        }
+//        if(dto.getHoldTopCount()==null || dto.getHoldTopCount()<0){
+//            throw new BusinessException(400, "持有上限不能小于0");
+//        }
+//        if(dto.getDayBackTopCount()==null || dto.getDayBackTopCount()<0){
+//            throw new BusinessException(400, "日退上限不能小于0");
+//        }
+//        if(dto.getBackPublicDayCount()==null || dto.getBackPublicDayCount()<0){
+//            throw new BusinessException(400, "退回公海天数不能小于0");
+//        }
+//        if (existingEntity != null && !existingEntity.getId().equals(dto.getId())) {
+//            throw new BusinessException(400, "已存在相同账号,请重新输入");
+//        }
         SysUserEntity entity =
                 sysUserMapper.selectOne(
                         new LambdaQueryWrapper<>(SysUserEntity.class)