| | |
| | | list.add(mapNoPass); |
| | | mapResult.put("series",list); |
| | | mapResult.put("noData",true); |
| | | //System.out.println(mapResult); |
| | | return mapResult; |
| | | } |
| | | |
| | |
| | | supplierDistinct.forEach(l -> { |
| | | supplierList.add(String.valueOf(l.get("supplier"))); |
| | | }); |
| | | //x轴 |
| | | allMap.put("xAxis", supplierList); |
| | | List<SeriesDto> seriesDtoList = new ArrayList<SeriesDto>(2); |
| | | //title |
| | | SeriesDto seriesDto = new SeriesDto("合格数量"); |
| | | SeriesDto seriesDto2 = new SeriesDto("不合格数量"); |
| | | // 取出对应合格数量不合格数量 |
| | |
| | | .forEach(l -> { |
| | | if (Objects.equals(l.get("inspectionStatus"), 1)) { |
| | | integerPass.incrementAndGet(); |
| | | } else { |
| | | } else if(Objects.equals(l.get("inspectionStatus"), 0)) { |
| | | integerNoPass.incrementAndGet(); |
| | | } |
| | | }); |
| | |
| | | public Map<String, Object> getNoPassProjectStatistics(SelectQualificationRateDto dto) { |
| | | Map<String, Object> allMap = new HashMap<>(16); |
| | | List<ImInfo> imInfos = qualificationRateStatisticsMapper.selectProjectionsByCondition(dto); |
| | | List<String>NameList = new ArrayList<>(); |
| | | List<SelectProjectByCodeAndNameDto>projectByCodeAndNameDtos=new ArrayList<>(); |
| | | if(imInfos.size()<=0){ |
| | | allMap.put("noData",false); |
| | | return allMap; |
| | | } |
| | | List<String>NameList = new ArrayList<>(); |
| | | List<SelectProjectByCodeAndNameDto>projectByCodeAndNameDtos=new ArrayList<>(); |
| | | imInfos.forEach(l->{ |
| | | NameList.add(l.getImCode()+"-"+l.getImName()); |
| | | projectByCodeAndNameDtos.add(new SelectProjectByCodeAndNameDto(l.getImCode(),l.getImName())); |