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