From 9a7ed13d553ed7493b14d94f5d366c2736ade388 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Mon, 14 Mar 2022 16:25:06 +0800
Subject: [PATCH] 按条件查询环比信息接口
---
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