| | |
| | | int finalI = i; |
| | | mapList.stream().filter(m->Objects.equals(String.valueOf(m.get("type")),String.valueOf(TYPE_INT_LIST.get(finalI)))) |
| | | .forEach(m->{ |
| | | System.out.println(m.get("type")); |
| | | if(Objects.equals(m.get("inspectionStatus"),0)){ |
| | | integerNoPass.incrementAndGet(); |
| | | } |
| | |
| | | list.add(mapNoPass); |
| | | mapResult.put("series",list); |
| | | mapResult.put("noData",true); |
| | | System.out.println("执行结束getTestSampleStatistics________________>"+mapResult); |
| | | //System.out.println(mapResult); |
| | | return mapResult; |
| | | } |
| | |
| | | seriesDtoList.add(seriesDto2); |
| | | allMap.put("series", seriesDtoList); |
| | | allMap.put("noData",true); |
| | | System.out.println("getSupplierNoPassStatistics结果++++++++++++++++>"+allMap); |
| | | return allMap; |
| | | } |
| | | |
| | |
| | | return allMap; |
| | | } |
| | | imInfos.forEach(l->{ |
| | | NameList.add(l.getICode()+"-"+l.getImName()); |
| | | projectByCodeAndNameDtos.add(new SelectProjectByCodeAndNameDto(l.getICode(),l.getImName())); |
| | | NameList.add(l.getImCode()+"-"+l.getImName()); |
| | | projectByCodeAndNameDtos.add(new SelectProjectByCodeAndNameDto(l.getImCode(),l.getImName())); |
| | | }); |
| | | List<ImInfo> imInfosAll = qualificationRateStatisticsMapper.selectProjection(projectByCodeAndNameDtos,dto); |
| | | int total = imInfosAll.size(); |
| | |
| | | AtomicInteger i=new AtomicInteger(0); |
| | | NameList.forEach(n->{ |
| | | imInfos.stream() |
| | | .filter(im-> Objects.equals(n,im.getICode()+"-"+im.getImName())) |
| | | .filter(im-> Objects.equals(n,im.getImCode()+"-"+im.getImName())) |
| | | .forEach(im->{ |
| | | i.set(im.getIprInfos().size()); |
| | | }); |
| | |
| | | allMap.put("legend",NameList); |
| | | allMap.put("series",doubleList); |
| | | allMap.put("noData",true); |
| | | System.out.println("getNoPassProjectStatistics结果==========================>"+allMap); |
| | | return allMap; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getSampleOptions() { |
| | | return qualificationRateStatisticsMapper.getSampleOptions(); |
| | | List<Map<String, Object>> sampleOptions = qualificationRateStatisticsMapper.getSampleOptions(); |
| | | //去重样品 |
| | | List<Map<String, Object>> sampleOptionsDistinct = ArrayListUtil.oneObjectsDistinctByProperty(MapHandlerDto::comparingByCode, sampleOptions); |
| | | sampleOptionsDistinct.forEach(System.out::println); |
| | | return sampleOptionsDistinct; |
| | | } |
| | | |
| | | public static String getPercent(long x, long y) { |