From 4b4c4114db773d2a5c3d2bcd9c15f43f7b4ff062 Mon Sep 17 00:00:00 2001 From: lizijie <lzjiiie@163.com> Date: Fri, 08 Oct 2021 16:13:53 +0800 Subject: [PATCH] 判断时间,修改臭氧8小时滑动平均值 --- screen-common/src/main/java/com/moral/util/ComprehensiveIndexUtils.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/screen-common/src/main/java/com/moral/util/ComprehensiveIndexUtils.java b/screen-common/src/main/java/com/moral/util/ComprehensiveIndexUtils.java index 9f9b368..638c261 100644 --- a/screen-common/src/main/java/com/moral/util/ComprehensiveIndexUtils.java +++ b/screen-common/src/main/java/com/moral/util/ComprehensiveIndexUtils.java @@ -45,12 +45,13 @@ Double ICO = CCO / SCO; Double IO3 = CO3 / SO3; //������������������ - Double ComprehensiveIndex = MathUtils.add(ISO2,INO2); - ComprehensiveIndex = MathUtils.add(ComprehensiveIndex,IPM25); - ComprehensiveIndex = MathUtils.add(ComprehensiveIndex,IPM10); - ComprehensiveIndex = MathUtils.add(ComprehensiveIndex,ICO); - ComprehensiveIndex = MathUtils.add(ComprehensiveIndex,IO3); - return ComprehensiveIndex; + Double comprehensiveIndex = MathUtils.add(ISO2,INO2); + comprehensiveIndex = MathUtils.add(comprehensiveIndex,IPM25); + comprehensiveIndex = MathUtils.add(comprehensiveIndex,IPM10); + comprehensiveIndex = MathUtils.add(comprehensiveIndex,ICO); + comprehensiveIndex = MathUtils.add(comprehensiveIndex,IO3); + comprehensiveIndex = AmendUtils.sciCal(comprehensiveIndex,2); + return comprehensiveIndex; } /** -- Gitblit v1.8.0