微调
This commit is contained in:
@@ -19,6 +19,8 @@ public enum AppRoleEnum {
|
||||
BXS_USER("bxs_user","便携式正式用户"),
|
||||
ROOT("root","超级管理员"),
|
||||
OPERATION_MANAGER("operation_manager","运维管理员"),
|
||||
REGULAR_USER_8000("regular_user_8000","正式用户综合电能质量"),
|
||||
REGULAR_USER("regular_user","正式用户物联云平台")
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
@@ -490,7 +490,14 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
||||
List<UserVO> users = new ArrayList<>();
|
||||
Role roleByCode1 = roleService.getRoleByCode(AppRoleEnum.APP_VIP_USER.getCode());
|
||||
Role roleByCode2 = roleService.getRoleByCode(AppRoleEnum.BXS_USER.getCode());
|
||||
List<UserRole> userRoles = userRoleMapper.selectUserRole(Stream.of(roleByCode1.getId(),roleByCode2.getId()).collect(Collectors.toList()));
|
||||
Role roleByCode3 = roleService.getRoleByCode(AppRoleEnum.REGULAR_USER_8000.getCode());
|
||||
Role roleByCode4 = roleService.getRoleByCode(AppRoleEnum.REGULAR_USER.getCode());
|
||||
List<UserRole> userRoles = userRoleMapper.selectUserRole(
|
||||
Stream.of(roleByCode1.getId()
|
||||
,roleByCode2.getId()
|
||||
,roleByCode3.getId()
|
||||
,roleByCode4.getId()
|
||||
).collect(Collectors.toList()));
|
||||
List<String> collect = userRoles.stream().map(UserRole::getUserId).distinct().collect(Collectors.toList());
|
||||
List<User> users1 = this.listByIds(collect);
|
||||
if (CollectionUtil.isNotEmpty(users1)) {
|
||||
|
||||
Reference in New Issue
Block a user