Browse Source

数据预警修改

wwh 2 years ago
parent
commit
211486b34f
1 changed files with 36 additions and 36 deletions
  1. 36 36
      huimv-admin/src/main/java/com/huimv/admin/timer/GasTimer.java

+ 36 - 36
huimv-admin/src/main/java/com/huimv/admin/timer/GasTimer.java

@@ -71,39 +71,39 @@ public class GasTimer {
                 queryWrapper.eq("farm_id", 21).eq("gas_type", 1);
                 GasThreshold gasThreshold = thresholdMapper.selectOne(queryWrapper);
                 if (Double.parseDouble(nh3n) > Double.parseDouble(gasThreshold.getNh3N())) {
-                    warningInfo.setWarningContent(nh3n + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("NH3N"+nh3n + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(0);
                 }
                 if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
-                    warningInfo.setWarningContent(jlm + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(1);
                 }
                 if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
-                    warningInfo.setWarningContent(elht + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(2);
                 }
                 if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
-                    warningInfo.setWarningContent(ejel + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(3);
                 }
                 if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
-                    warningInfo.setWarningContent(h2s + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(4);
                 }
                 if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
-                    warningInfo.setWarningContent(byx + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(5);
                 }
                 if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
-                    warningInfo.setWarningContent(ch3 + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(6);
                 }
                 if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
-                    warningInfo.setWarningContent(sja + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(7);
                 }
                 if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
-                    warningInfo.setWarningContent(cq + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(8);
                 }
 
@@ -117,40 +117,40 @@ public class GasTimer {
                 queryWrapper.eq("farm_id", 21).eq("gas_type", 2);
                 GasThreshold gasThreshold = thresholdMapper.selectOne(queryWrapper);
                 if (Double.parseDouble(nh3n) > Double.parseDouble(gasThreshold.getNh3N())) {
-                    warningInfo.setWarningContent(nh3n + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("NH3N"+nh3n + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(0);
                 }
                 if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
-                    warningInfo.setWarningContent(jlm + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(1);
                 }
                 if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
-                    warningInfo.setWarningContent(elht + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(2);
                 }
                 if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
-                    warningInfo.setWarningContent(ejel + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(3);
                 }
                 if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
-                    warningInfo.setWarningContent(h2s + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(4);
 
                 }
                 if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
-                    warningInfo.setWarningContent(byx + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(5);
                 }
                 if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
-                    warningInfo.setWarningContent(ch3 + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(6);
                 }
                 if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
-                    warningInfo.setWarningContent(sja + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(7);
                 }
                 if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
-                    warningInfo.setWarningContent(cq + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(8);
                 }
 
@@ -163,40 +163,40 @@ public class GasTimer {
                 queryWrapper.eq("farm_id", 21).eq("gas_type", 3);
                 GasThreshold gasThreshold = thresholdMapper.selectOne(queryWrapper);
                 if (Double.parseDouble(nh3n) > Double.parseDouble(gasThreshold.getNh3N())) {
-                    warningInfo.setWarningContent(nh3n + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("NH3N"+nh3n + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(0);
                 }
                 if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
-                    warningInfo.setWarningContent(jlm + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(1);
                 }
                 if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
-                    warningInfo.setWarningContent(elht + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(2);
                 }
                 if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
-                    warningInfo.setWarningContent(ejel + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(3);
                 }
                 if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
-                    warningInfo.setWarningContent(h2s + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(4);
 
                 }
                 if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
-                    warningInfo.setWarningContent(byx + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(5);
                 }
                 if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
-                    warningInfo.setWarningContent(ch3 + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(6);
                 }
                 if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
-                    warningInfo.setWarningContent(sja + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(7);
                 }
                 if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
-                    warningInfo.setWarningContent(cq + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(8);
                 }
 
@@ -209,39 +209,39 @@ public class GasTimer {
                 queryWrapper.eq("farm_id", 21).eq("gas_type", 4);
                 GasThreshold gasThreshold = thresholdMapper.selectOne(queryWrapper);
                 if (Double.parseDouble(nh3n) > Double.parseDouble(gasThreshold.getNh3N())) {
-                    warningInfo.setWarningContent(nh3n + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("NH3N"+nh3n + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(0);
                 }
                 if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
-                    warningInfo.setWarningContent(jlm + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(1);
                 }
                 if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
-                    warningInfo.setWarningContent(elht + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(2);
                 }
                 if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
-                    warningInfo.setWarningContent(ejel + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(3);
                 }
                 if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
-                    warningInfo.setWarningContent(h2s + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(4);
                 }
                 if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
-                    warningInfo.setWarningContent(byx + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(5);
                 }
                 if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
-                    warningInfo.setWarningContent(ch3 + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(6);
                 }
                 if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
-                    warningInfo.setWarningContent(sja + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(7);
                 }
                 if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
-                    warningInfo.setWarningContent(cq + "超过阈值,系统预警提醒");
+                    warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
                     warningInfo.setWarningType(8);
                 }