From 113a18ea7368ebc5fbadc211ad3ee1feb743929d Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Fri, 29 Oct 2021 15:55:04 +0800
Subject: [PATCH] screen-api            根据AQI计算污染等级

---
 screen-common/src/main/java/com/moral/constant/Constants.java |  108 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 105 insertions(+), 3 deletions(-)

diff --git a/screen-common/src/main/java/com/moral/constant/Constants.java b/screen-common/src/main/java/com/moral/constant/Constants.java
index d20f4af..683d5b2 100644
--- a/screen-common/src/main/java/com/moral/constant/Constants.java
+++ b/screen-common/src/main/java/com/moral/constant/Constants.java
@@ -122,7 +122,7 @@
     /*
      * ���������������������
      * */
-    public static final String DEVICE_STATE_OFFLINE = "4";
+    public static final String DEVICE_STATE_OFFLINE = "0";
 
     /*
      * ������code
@@ -147,10 +147,112 @@
     /*
      * ������code
      * */
-    public static final String SENSOR_CODE_WIND_SPEED = "a01008";
+    public static final String SENSOR_CODE_WIND_SPEED = "a01007";
 
     /*
      * ������������code
      * */
-    public static final String SENSOR_CODE_CO= "a21005";
+    public static final String SENSOR_CODE_CO = "a21005";
+
+    /*
+     * PM2.5 code
+     * */
+    public static final String SENSOR_CODE_PM25 = "a34004";
+
+    /*
+     * PM10 code
+     * */
+    public static final String SENSOR_CODE_PM10 = "a34002";
+
+    /*
+     * SO2 code
+     * */
+    public static final String SENSOR_CODE_SO2 = "a21026";
+
+    /*
+     * NO2 code
+     * */
+    public static final String SENSOR_CODE_NO2 = "a21004";
+
+    /*
+     * ������ code
+     * */
+    public static final String SENSOR_CODE_LON = "flylon";
+
+    /*
+     * ������ code
+     * */
+    public static final String SENSOR_CODE_LAT = "flylat";
+
+    /**
+     * The Constant NULL_VALUE.
+     */
+    public static final String NULL_VALUE = "N/V";
+
+    /*
+    * ������������������������,������
+    * */
+    public static final String MARKER_BIT_TRUE = "N";
+
+    /*
+    * ������������������������,���������������
+    * */
+    public static final String MARKER_BIT_FALSE = "H";
+
+    /*
+    * ������������������������������������������key������
+    * */
+    public static final String MARKER_BIT_KEY = "Flag";
+
+    /*
+     * ������������������������
+     * */
+    public static final String SENSOR_CODE_SPECIAL_BATCH = "PORRST";
+
+    /*
+     * ������������������������������
+     * */
+    public static final String SPECIAL_DEVICE_CRUISER = "0";
+
+    /*
+     * ������������������������������
+     * */
+    public static final String SPECIAL_DEVICE_UAV = "1";
+
+    /*
+    * ������
+    * */
+    public static final String HOURLY_REPORT = "0";
+
+    /*
+    * ������
+    * */
+    public static final String DAILY_REPORT = "1";
+
+    /*
+    * ������
+    * */
+    public static final String WEEKLY_REPORT = "2";
+
+    /*
+    * ������
+    * */
+    public static final String MONTHLY_REPORT = "3";
+
+    /*
+    * ���������������������
+    * */
+    public static final String NORMAL_FLAG = "N";
+
+    public static final String EXCELLENT = "���";
+
+    public static final String GOOD = "���";
+
+    public static final String MILD = "������������";
+
+    public static final String MIDDLE = "������������";
+
+    public static final String SERIOUS = "������������";
+
+    public static final String SERVER = "������������";
 }

--
Gitblit v1.8.0