| | |
| | | checkIndexCar.setQuarter(exportDTO.getQuarter()); |
| | | checkIndexCar.setDeptId(exportDTO.getDeptId()); |
| | | checkIndexCar.setDeptIds(exportDTO.getDeptIds()); |
| | | checkIndexCar.setExamineTags(exportDTO.getExamineTags()); |
| | | //权限控制 只能查看已发布 |
| | | roleControl(checkIndexCar); |
| | | List<CheckIndexCar> checkIndexCars = indexCarService.selectCheckIndexCarList(checkIndexCar); |
| | | List<CheckIndexCar> checkIndexCars = new ArrayList<>(); |
| | | for (Integer examineTag : exportDTO.getExamineTags()) { |
| | | checkIndexCar.setExamineTag(Short.valueOf(examineTag+"")); |
| | | if(examineTag ==0){ |
| | | checkIndexCar.setExamineTagQuery(1); |
| | | } |
| | | checkIndexCars.addAll(indexCarService.selectCheckIndexCarList(checkIndexCar)); |
| | | } |
| | | //计算平均值放在excel最后 |
| | | if (exportDTO.getAverage() != null && exportDTO.getAverage() && !CollectionUtils.isEmpty(checkIndexCars)) { |
| | | //先区分考核标签,再区分区县 |
| | |
| | | checkIndexFace.setQuarter(exportDTO.getQuarter()); |
| | | checkIndexFace.setDeptId(exportDTO.getDeptId()); |
| | | checkIndexFace.setDeptIds(exportDTO.getDeptIds()); |
| | | checkIndexFace.setExamineTags(exportDTO.getExamineTags()); |
| | | //权限控制 只能查看已发布 |
| | | roleControl(checkIndexFace); |
| | | List<CheckIndexFace> checkIndexFaces = indexFaceService.selectCheckIndexFaceList(checkIndexFace); |
| | | List<CheckIndexFace> checkIndexFaces = new ArrayList<>(); |
| | | for (Integer examineTag : exportDTO.getExamineTags()) { |
| | | checkIndexFace.setExamineTag(Short.valueOf(examineTag+"")); |
| | | if(examineTag ==0){ |
| | | checkIndexFace.setExamineTagQuery(1); |
| | | } |
| | | checkIndexFaces.addAll(indexFaceService.selectCheckIndexFaceList(checkIndexFace)); |
| | | } |
| | | //计算平均值放在excel最后 |
| | | if (exportDTO.getAverage() != null && exportDTO.getAverage() && !CollectionUtils.isEmpty(checkIndexFaces)) { |
| | | //先区分考核标签,再区分区县 |
| | |
| | | checkIndexVideo.setQuarter(exportDTO.getQuarter()); |
| | | checkIndexVideo.setDeptId(exportDTO.getDeptId()); |
| | | checkIndexVideo.setDeptIds(exportDTO.getDeptIds()); |
| | | checkIndexVideo.setExamineTags(exportDTO.getExamineTags()); |
| | | //权限控制 只能查看已发布 |
| | | roleControl(checkIndexVideo); |
| | | List<CheckIndexVideo> checkIndexVideos = indexVideoService.selectCheckIndexVideoList(checkIndexVideo); |
| | | List<CheckIndexVideo> checkIndexVideos = new ArrayList<>(); |
| | | for (Integer examineTag : exportDTO.getExamineTags()) { |
| | | checkIndexVideo.setExamineTag(Short.valueOf(examineTag+"")); |
| | | if(examineTag ==0){ |
| | | checkIndexVideo.setExamineTagQuery(1); |
| | | } |
| | | checkIndexVideos.addAll(indexVideoService.selectCheckIndexVideoList(checkIndexVideo)); |
| | | } |
| | | //计算平均值放在excel最后 |
| | | if (exportDTO.getAverage() != null && exportDTO.getAverage() && !CollectionUtils.isEmpty(checkIndexVideos)) { |
| | | //先区分考核标签,再区分区县 |
| | |
| | | for (CheckScore checkScore : dashboard) { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("value",checkScore.getScore()); |
| | | if(dashboardQuery.getDataScope() ==1) { |
| | | map.put("value", checkScore.getScore()); |
| | | if (dashboardQuery.getDataScope() == 1) { |
| | | map.put("name", "省厅得分"); |
| | | }else { |
| | | } else { |
| | | map.put("name", "区县得分"); |
| | | } |
| | | list.add(map); |
| | | resultMap.put(checkScore.getDeptName(),list ); |
| | | resultMap.put(checkScore.getDeptName(), list); |
| | | } |
| | | return resultMap; |
| | | } |