| | |
| | | Collectors.counting() |
| | | )); |
| | | projectNumResp.setTotal(dataNum.size()); |
| | | projectNumResp.setApproval(statusCounts.get(3) == null ? 0 : statusCounts.get(3).intValue()); |
| | | int i = statusCounts.get(2) == null ? 0 : statusCounts.get(2).intValue(); |
| | | projectNumResp.setApproval(statusCounts.get(3) == null ? 0+i: statusCounts.get(3).intValue()+i); |
| | | projectNumResp.setExpert(statusCounts.get(1) == null ? 0 : statusCounts.get(1).intValue()); |
| | | projectNumResp.setStaging(statusCounts.get(0) == null ? 0:statusCounts.get(0).intValue()); |
| | | projectNumResp.setEnd(statusCounts.get(4) == null ? 0:statusCounts.get(4).intValue()); |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<ProjectDataResp> selectProjectData(ProjectManagement projectManagement) { |
| | | return projectManagementMapper.selectProjectData(projectManagement); |
| | | } |
| | | |
| | | private List<ProjectExpertDetail> dealData(List<ProjectExpertScoreSaveReq.Score> data,Long projectExpertId){ |
| | | List<ProjectExpertDetail> dealData = new ArrayList<>(); |
| | | data.forEach(dto -> { |