From 5f2a1581e76ee0fb5bf55d4bfd3ea16659b667c0 Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Tue, 7 Nov 2023 21:06:17 +0800 Subject: [PATCH] bugfix --- .../entity/CoalWashingDailyAnalysisEntity.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/cn/lihongjie/coal/coalWashingDailyAnalysis/entity/CoalWashingDailyAnalysisEntity.java b/src/main/java/cn/lihongjie/coal/coalWashingDailyAnalysis/entity/CoalWashingDailyAnalysisEntity.java index be66f04f..cafd90e2 100644 --- a/src/main/java/cn/lihongjie/coal/coalWashingDailyAnalysis/entity/CoalWashingDailyAnalysisEntity.java +++ b/src/main/java/cn/lihongjie/coal/coalWashingDailyAnalysis/entity/CoalWashingDailyAnalysisEntity.java @@ -130,15 +130,14 @@ public class CoalWashingDailyAnalysisEntity extends OrgCommonEntity { totalWeight1 += currWeight; avgSum1 += ObjectUtils.defaultIfNull(inputItem.getAvgDdp1(), 0.0) * currWeight; - - inputItem.setRollingAvgDdp1(avgSum1 / totalWeight1); } + inputItem.setRollingAvgDdp1(avgSum1 / totalWeight1); if (inputItem.getAvgDdp2() != null) { totalWeight2 += currWeight; avgSum2 += ObjectUtils.defaultIfNull(inputItem.getAvgDdp2(), 0.0) * currWeight; - inputItem.setRollingAvgDdp2(avgSum2 / totalWeight2); } + inputItem.setRollingAvgDdp2(avgSum2 / totalWeight2); } for (int i = 0; i < inputItems.size(); i++) {