From a0224894fcc89500a701f39ccaf4322a03231ff6 Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Fri, 25 Feb 2022 16:48:28 +0800
Subject: [PATCH] screen-api 增加达标天数分析接口
---
screen-common/src/main/java/com/moral/util/AQIUtils.java | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/screen-common/src/main/java/com/moral/util/AQIUtils.java b/screen-common/src/main/java/com/moral/util/AQIUtils.java
index 4bad0e2..982af88 100644
--- a/screen-common/src/main/java/com/moral/util/AQIUtils.java
+++ b/screen-common/src/main/java/com/moral/util/AQIUtils.java
@@ -24,6 +24,43 @@
/*���������������������*/
private static Double[] IAQI_Array = new Double[]{0d,50d,100d,150d,200d,300d,400d,500d};
+ //������aqi������������
+ public static boolean aqiIsStandard(int aqi){
+ if(aqi<=100)
+ return true;
+ return false;
+ }
+ public static boolean PM2_5IsStandard(Double pm2_5){
+ if(pm2_5<=75)
+ return true;
+ return false;
+ }
+ public static boolean PM10IsStandard(Double pm10){
+ if(pm10<=150)
+ return true;
+ return false;
+ }
+ public static boolean SO2IsStandard(Double so2){
+ if(so2<=500)
+ return true;
+ return false;
+ }
+ public static boolean NO2IsStandard(Double no2){
+ if(no2<=80)
+ return true;
+ return false;
+ }
+ public static boolean COIsStandard(Double co){
+ if(co<=4)
+ return true;
+ return false;
+ }
+ public static boolean O3IsStandard(Double o3){
+ if(o3<=200)
+ return true;
+ return false;
+ }
+
/**
* @Description: ������AQI���������������������������������������
* @Param:
--
Gitblit v1.8.0