| | |
| | | Long productCount1 = insProductMapper.selectCount(Wrappers.<InsProduct>lambdaQuery() |
| | | .eq(InsProduct::getInsSampleId, s.getId()) |
| | | .eq(InsProduct::getInsResult, 3)); |
| | | productSize1.set(productSize1.get() + Integer.parseInt(productCount1 + "")); |
| | | // productSize1.set(productSize1.get() + Integer.parseInt(productCount1 + "")); |
| | | productSize1.set(productSize1.get() + Integer.parseInt(0 + "")); |
| | | //不合格 |
| | | Long productCount2 = insProductMapper.selectCount(Wrappers.<InsProduct>lambdaQuery() |
| | | .eq(InsProduct::getInsSampleId, s.getId()) |
| | |
| | | Long productCount3 = insProductMapper.selectCount(Wrappers.<InsProduct>lambdaQuery() |
| | | .eq(InsProduct::getInsSampleId, s.getId()) |
| | | .eq(InsProduct::getInsResult, 1)); |
| | | productSize3.set(productSize3.get() + Integer.parseInt(productCount3 + "")); |
| | | // productSize3.set(productSize3.get() + Integer.parseInt(productCount3 + "")); |
| | | productSize3.set(productSize3.get() + Integer.parseInt(productCount3+productCount1 + "")); |
| | | //将项目按照站点进行分类 |
| | | Map<String, List<InsProduct>> listMap = s.getInsProduct().stream().collect(Collectors.groupingBy(InsProduct::getSonLaboratory)); |
| | | // 创建一个 Map 将站点和项目ID的映射关系 |