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