Browse Source

添加用户,取消角色租户判断

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
25da914fb5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/add/AddUserService.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/user/add/AddUserService.java View File

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

Loading…
Cancel
Save