| | |
| | | dayDto.setFlyAsh(dayDto.getFlyAsh().add(qty)); |
| | | } else if ("石膏".equals(materialName)) { |
| | | dayDto.setGypsum(dayDto.getGypsum().add(qty)); |
| | | } else if ("石灰".equals(materialName)) { |
| | | } else if ("石灰".equals(materialName) || "生石灰".equals(materialName)) { |
| | | dayDto.setLime(dayDto.getLime().add(qty)); |
| | | } |
| | | dayDto.setTotal(dayDto.getTotal().add(qty)); |
| | |
| | | BigDecimal totalAmount = BigDecimal.ZERO; |
| | | BigDecimal cumulativeAmount = BigDecimal.ZERO; |
| | | |
| | | Set<String> targetMaterials = new HashSet<>(Arrays.asList("粉煤灰", "石膏", "石灰")); |
| | | Set<String> targetMaterials = new HashSet<>(Arrays.asList("粉煤灰", "石膏", "石灰", "生石灰")); |
| | | |
| | | for (ProductionProductInput input : allInputs) { |
| | | String materialName = skuToMaterialNameMap.get(input.getProductId()); |
| | |
| | | |
| | | for (ProductionProductInput input : allInputs) { |
| | | String materialName = skuToMaterialNameMap.get(input.getProductId()); |
| | | if ("生石灰".equals(materialName)) { |
| | | materialName = "石灰"; |
| | | } |
| | | if (materialName == null || !countMap.containsKey(materialName)) continue; |
| | | |
| | | BigDecimal qty = UnitUtils.convertValueToTon(input.getQuantity(), input.getUnit()); |
| | |
| | | String label = dictCodeToLabelMap.get(dictCode); |
| | | String materialName = skuToMaterialNameMap.get(input.getProductId()); |
| | | if (materialName == null) continue; |
| | | if ("生石灰".equals(materialName)) { |
| | | materialName = "石灰"; |
| | | } |
| | | |
| | | BigDecimal qty = UnitUtils.convertValueToTon(input.getQuantity(), input.getUnit()); |
| | | |