无关风月
6 小时以前 5e2d78f61bf7d1513d5d5c8cd55442133a6e898e
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TLocationController.java
@@ -141,6 +141,9 @@
        List<String> collect = list.stream().map(TTask::getId).collect(Collectors.toList());
        List<LocationListTaskVO> res = new ArrayList<>();
        if (collect.isEmpty()){
            return R.ok(pageInfo);
        }
        List<TTaskDetail> taskDetails = tTaskDetailService.list(Wrappers.lambdaQuery(TTaskDetail.class)
                        .in(TTaskDetail::getTaskId,collect)
                .eq(TTaskDetail::getClearStatus, 2)
@@ -272,11 +275,18 @@
        List<String> strings = new ArrayList<>();
        strings.add(id);
        TProjectDept projectDept = projectDeptService.getById(id);
        if (projectDept.getParentId().equals("0")){
            List<String> collect = projectDeptService.lambdaQuery().eq(TProjectDept::getParentId, projectDept.getId())
                    .list().stream().map(TProjectDept::getId).collect(Collectors.toList());
        if (projectDept!=null){
            if (projectDept.getParentId().equals("0")){
                List<String> collect = projectDeptService.lambdaQuery().eq(TProjectDept::getParentId, projectDept.getId())
                        .list().stream().map(TProjectDept::getId).collect(Collectors.toList());
                strings.addAll(collect);
            }
        }else{
            List<String> collect = deptService.lambdaQuery().eq(TDept::getId, id)
                    .list().stream().map(TDept::getId).collect(Collectors.toList());
            strings.addAll(collect);
        }
        List<SysUser> res = sysUserService.selectUserByDeptId(strings);
        return R.ok(res);
    }