From ae188e492c18c213da4ead70abb66c406c97b908 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Thu, 14 Oct 2021 13:45:46 +0800 Subject: [PATCH] 国控站aqi接口加入time参数 --- 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