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