| | |
| | | if (deptType == 1) { |
| | | // 查询片区 |
| | | TProjectDept projectDept = projectDeptService.getById(deptId); |
| | | // 查询项目部 |
| | | TProjectDept parent = projectDeptService.getById(projectDept.getParentId()); |
| | | List<TProjectDept> children = new ArrayList<>(); |
| | | children.add(projectDept); |
| | | parent.setChildren(children); |
| | | projectDeptList.add(parent); |
| | | if("0".equals(projectDept.getParentId())){ |
| | | // 查询项目部 |
| | | List<TProjectDept> childProjectDept = projectDeptService.list(Wrappers.lambdaQuery(TProjectDept.class) |
| | | .eq(TProjectDept::getStatus,1) |
| | | .eq(TProjectDept::getParentId,projectDept.getId())); |
| | | projectDept.setChildren(childProjectDept); |
| | | projectDeptList.add(projectDept); |
| | | }else { |
| | | // 查询项目部 |
| | | TProjectDept parent = projectDeptService.getById(projectDept.getParentId()); |
| | | List<TProjectDept> children = new ArrayList<>(); |
| | | children.add(projectDept); |
| | | parent.setChildren(children); |
| | | projectDeptList.add(parent); |
| | | } |
| | | }else { |
| | | projectDeptList = projectDeptService.list(Wrappers.lambdaQuery(TProjectDept.class) |
| | | .eq(TProjectDept::getStatus,1) |
| | |
| | | List<TTaskDetail> taskDetails = tTaskDetailService.list(Wrappers.lambdaQuery(TTaskDetail.class) |
| | | .in(TTaskDetail::getTaskId, taskIds) |
| | | .eq(TTaskDetail::getClearStatus, 2) |
| | | .eq(TTaskDetail::getHandleType,1) |
| | | .orderByDesc(TTaskDetail::getCreateTime)); |
| | | List<TTaskDetail> taskDetailList = new ArrayList<>(); |
| | | for (TTask task : list) { |