|
@@ -1127,7 +1127,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
userDTO.setRljCertStatus(null);
|
|
|
}
|
|
|
|
|
|
- if (SecurityUtils.getRoles().contains(1) || SecurityUtils.getRoles().contains(2)) {
|
|
|
+ if (SecurityUtils.getRoles().contains(1) || SecurityUtils.getRoles().contains(2) || SecurityUtils.getRoles().contains(35)) {
|
|
|
return baseMapper.getUserVosPage(page, userDTO, new DataScope());
|
|
|
} else if (SecurityUtils.getRoles().contains(19)) {
|
|
|
// CSM只能查看自己维护的企业下的用户, 以及下属维护的企业下的用户
|
|
@@ -1136,20 +1136,21 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
Set<Integer> allUserIds = sysCsmUserRelationService.recurseCsmLowerUserId(Collections.singleton(userId), new AtomicInteger(10));
|
|
|
userDTO.setCsmUserIdList(allUserIds);
|
|
|
return baseMapper.getUserVosPage(page, userDTO, new DataScope());
|
|
|
- } else if (SecurityUtils.getRoles().contains(35)) {
|
|
|
- // BC总负责人数据权限
|
|
|
- List<Integer> bcRoles = Stream.of(3, 4, 5, 6, 7, 9, 10, 11, 13, 19, 31, 35).collect(Collectors.toList());
|
|
|
- if (CollUtil.isNotEmpty(userDTO.getRole())) {
|
|
|
- Collection<Integer> intersection = CollUtil.intersectionDistinct(bcRoles, userDTO.getRole());
|
|
|
- if (CollUtil.isEmpty(intersection)) {
|
|
|
- return page;
|
|
|
- }
|
|
|
- userDTO.setRole(new ArrayList<>(intersection));
|
|
|
- } else {
|
|
|
- userDTO.setRole(bcRoles);
|
|
|
- }
|
|
|
- return baseMapper.getUserVosPage(page, userDTO, new DataScope());
|
|
|
}
|
|
|
+// else if (SecurityUtils.getRoles().contains(35)) {
|
|
|
+// // BC总负责人数据权限
|
|
|
+// List<Integer> bcRoles = Stream.of(3, 4, 5, 6, 7, 9, 10, 11, 13, 19, 31, 35).collect(Collectors.toList());
|
|
|
+// if (CollUtil.isNotEmpty(userDTO.getRole())) {
|
|
|
+// Collection<Integer> intersection = CollUtil.intersectionDistinct(bcRoles, userDTO.getRole());
|
|
|
+// if (CollUtil.isEmpty(intersection)) {
|
|
|
+// return page;
|
|
|
+// }
|
|
|
+// userDTO.setRole(new ArrayList<>(intersection));
|
|
|
+// } else {
|
|
|
+// userDTO.setRole(bcRoles);
|
|
|
+// }
|
|
|
+// return baseMapper.getUserVosPage(page, userDTO, new DataScope());
|
|
|
+// }
|
|
|
Integer deptId = userDTO.getDeptId();
|
|
|
// if (null != userDTO.getDeptId()) {
|
|
|
// deptId = userDTO.getDeptId();
|