|
@@ -64,7 +64,7 @@ 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"+nh3n + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("NH3N为"+nh3n + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(0);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -73,7 +73,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
|
|
|
- warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("甲硫醚为"+jlm + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(1);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -82,7 +82,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
|
|
|
- warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二硫化碳为"+elht + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(2);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -91,7 +91,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
|
|
|
- warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二甲二硫为"+ejel + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(3);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -100,7 +100,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
|
|
|
- warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("H2S为"+h2s + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(4);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -109,7 +109,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
|
|
|
- warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("苯乙烯为"+byx + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(5);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -118,7 +118,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
|
|
|
- warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("CH3SH为"+ch3 + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(6);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -127,7 +127,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
|
|
|
- warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("三甲胺为"+sja + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(7);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -136,7 +136,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
|
|
|
- warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("臭气为"+cq + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(8);
|
|
|
warningInfo.setBuildLocation("屋顶");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -149,7 +149,7 @@ 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"+nh3n + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("NH3N为"+nh3n + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(0);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -158,7 +158,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
|
|
|
- warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("甲硫醚为"+jlm + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(1);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -167,7 +167,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
|
|
|
- warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二硫化碳为"+elht + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(2);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -176,7 +176,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
|
|
|
- warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二甲二硫为"+ejel + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(3);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -185,7 +185,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
|
|
|
- warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("H2S为"+h2s + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(4);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -195,7 +195,7 @@ public class GasTimer {
|
|
|
|
|
|
}
|
|
|
if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
|
|
|
- warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("苯乙烯为"+byx + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(5);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -204,7 +204,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
|
|
|
- warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("CH3SH为"+ch3 + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(6);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -213,7 +213,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
|
|
|
- warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("三甲胺为"+sja + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(7);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -222,7 +222,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
|
|
|
- warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("臭气为"+cq + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(8);
|
|
|
warningInfo.setBuildLocation("厂界上");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -235,7 +235,7 @@ 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"+nh3n + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("NH3N为"+nh3n + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(0);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -244,7 +244,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
|
|
|
- warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("甲硫醚为"+jlm + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(1);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -253,7 +253,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
|
|
|
- warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二硫化碳为"+elht + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(2);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -262,7 +262,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
|
|
|
- warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二甲二硫为"+ejel + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(3);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -271,7 +271,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
|
|
|
- warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("H2S为"+h2s + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(4);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -281,7 +281,7 @@ public class GasTimer {
|
|
|
|
|
|
}
|
|
|
if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
|
|
|
- warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("苯乙烯为"+byx + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(5);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -290,7 +290,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
|
|
|
- warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("CH3SH为"+ch3 + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(6);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -299,7 +299,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
|
|
|
- warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("三甲胺为"+sja + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(7);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -308,7 +308,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
|
|
|
- warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("臭气为"+cq + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(8);
|
|
|
warningInfo.setBuildLocation("厂界下");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -321,7 +321,7 @@ 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"+nh3n + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("NH3N为"+nh3n + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(0);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -330,7 +330,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(jlm) > Double.parseDouble(gasThreshold.getJlm())) {
|
|
|
- warningInfo.setWarningContent("甲硫醚"+jlm + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("甲硫醚为"+jlm + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(1);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -339,7 +339,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(elht) > Double.parseDouble(gasThreshold.getElht())) {
|
|
|
- warningInfo.setWarningContent("二硫化碳"+elht + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二硫化碳为"+elht + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(2);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -348,7 +348,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ejel) > Double.parseDouble(gasThreshold.getEjel())) {
|
|
|
- warningInfo.setWarningContent("二甲二硫"+ejel + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("二甲二硫为"+ejel + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(3);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -357,7 +357,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(h2s) > Double.parseDouble(gasThreshold.getH2s())) {
|
|
|
- warningInfo.setWarningContent("H2S"+h2s + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("H2S为"+h2s + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(4);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -366,7 +366,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(byx) > Double.parseDouble(gasThreshold.getByx())) {
|
|
|
- warningInfo.setWarningContent("苯乙烯"+byx + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("苯乙烯为"+byx + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(5);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -375,7 +375,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(ch3) > Double.parseDouble(gasThreshold.getCh3sh())) {
|
|
|
- warningInfo.setWarningContent("CH3SH"+ch3 + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("CH3SH为"+ch3 + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(6);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -384,7 +384,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(sja) > Double.parseDouble(gasThreshold.getSja())) {
|
|
|
- warningInfo.setWarningContent("三甲胺"+sja + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("三甲胺为"+sja + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(7);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|
|
@@ -393,7 +393,7 @@ public class GasTimer {
|
|
|
warningInfoMapper.insert(warningInfo);
|
|
|
}
|
|
|
if (Double.parseDouble(cq) > Double.parseDouble(gasThreshold.getCq())) {
|
|
|
- warningInfo.setWarningContent("臭气"+cq + "超过阈值,系统预警提醒");
|
|
|
+ warningInfo.setWarningContent("臭气为"+cq + "超过阈值,系统预警提醒");
|
|
|
warningInfo.setWarningType(8);
|
|
|
warningInfo.setBuildLocation("厂界居民");
|
|
|
warningInfo.setDate(new Date());
|