@@ -108,7 +108,7 @@ public class AddUserService { | |||
count = roleMapper.selectCount(new LambdaQueryWrapper<Role>() | |||
.eq(Role::getId, user.getRoleId()) | |||
.eq(Role::getMark, 1)); | |||
if (count <= 0) { | |||
if (count < 0) { | |||
return JsonResult.error(AddUserCodeEnum.ROLE_IS_NOT_EXISTS.getCode(), AddUserCodeEnum.ROLE_IS_NOT_EXISTS.getMsg()); | |||
} | |||
return JsonResult.success(); |