BAOLH
2026-09-17 59c2e48f4c40e7dbc81149c9a859a54d8780ddf3
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/service/impl/ProjectServiceImpl.java
@@ -280,7 +280,7 @@
        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());
            //如果当前用户属于一个任务,那么他也可以看见当前这个任务的项目
@@ -324,7 +324,7 @@
            }
        }
        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);
            }