@@ -54,6 +54,9 @@ public class SysUserController extends BaseController{
if(user ==null){
throw new BusinessException(ResultCode.USER_NOT_EXIST);
}
+ if(user.getStatus() == 0){
+ throw new BusinessException(ResultCode.USERNAME_ERROR);
+ }
sysUserService.addOrUpdate(user,param);
return ResultData.ok();
@@ -187,6 +187,7 @@ public class SysUserServiceImpl extends ServiceImpl<ISysUserMapper, SysUser> imp
if(StringUtils.isNotBlank(userName)){
wrapper.like(SysUser::getUserName,userName);
+ wrapper.eq(SysUser::getStatus,1);
return this.list(wrapper);