From 5fa4c1db3141099be4ca176cdf2f3ec10f46c141 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Wed, 09 Mar 2022 11:36:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev_ --- 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