| | |
| | | int min = Collections.min(levels);
|
| | | List<Long> projectIdList = new ArrayList<>();
|
| | | // 判断角色等级
|
| | | if (min == Constant.ROLE_LEVEL_MANAGER || min == Constant.ROLE_LEVEL_LEADER || min == Constant.ROLE_LEVEL_ORDINARY) {
|
| | | if (Constant.BASE_LEVEL_LIST.contains(Long.valueOf(min))) {
|
| | | // 根据用户ID查询参与的项目ID
|
| | | //List<Long> taskUserProjectIdList = taskDaliyRepository.findProjectIdByUserId(SecurityUtils.getCurrentUserId());
|
| | | //如果当前用户属于一个任务,那么他也可以看见当前这个任务的项目
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (!(min == Constant.ROLE_LEVEL_MANAGER || min == Constant.ROLE_LEVEL_LEADER || min == Constant.ROLE_LEVEL_ORDINARY)){
|
| | | if (!Constant.BASE_LEVEL_LIST.contains(Long.valueOf(min))){
|
| | | for (ProjectDto projectDto : projectDtoList) {
|
| | | projectDto.setFlag(true);
|
| | | }
|