| | |
| | | ).map(MwMicroEquipmentStaticsVO::getWeight).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(2, RoundingMode.HALF_UP); |
| | | long count = staticsData.stream().filter(e -> e.getWasteType().equals(sysDictData.getDictCode()) |
| | | && finalSdf.format(e.getUseTime()).equals(date)).count(); |
| | | departmentReportItemVO.getData().add(weight); |
| | | departmentReportItemVO.getData().add(BigDecimal.valueOf(count)); |
| | | totalWeight = totalWeight.add(weight); |
| | | departmentReportItemVO.getData().add(weight); |
| | | totalCount = totalCount.add(BigDecimal.valueOf(count)); |
| | | totalWeight = totalWeight.add(weight); |
| | | } |
| | | departmentReportItemVO.getData().add(totalWeight); |
| | | departmentReportItemVO.getData().add(totalCount); |
| | | departmentReportItemVO.getData().add(totalWeight); |
| | | result.add(departmentReportItemVO); |
| | | } |
| | | |
| | |
| | | headTitles.add(Lists.newArrayList(title, "日期", "日期")); |
| | | String finalTitle = title; |
| | | medicalWasteTypeList.forEach(item -> { |
| | | headTitles.add(Lists.newArrayList(finalTitle, item.getDictLabel(), "总数量")); |
| | | headTitles.add(Lists.newArrayList(finalTitle, item.getDictLabel(), "总重量(kg)")); |
| | | headTitles.add(Lists.newArrayList(finalTitle, item.getDictLabel(), "数量")); |
| | | headTitles.add(Lists.newArrayList(finalTitle, item.getDictLabel(), "重量(kg)")); |
| | | }); |
| | | headTitles.add(Lists.newArrayList(title, "小计", "总重量(KG)")); |
| | | headTitles.add(Lists.newArrayList(title, "小计", "总数量")); |
| | | headTitles.add(Lists.newArrayList(title, "小计", "数量")); |
| | | headTitles.add(Lists.newArrayList(title, "小计", "重量(kg)")); |
| | | return headTitles; |
| | | } |
| | | |