|
@@ -55,10 +55,10 @@ public class ProtTimer {
|
|
|
QueryWrapper<ProtThreshold> queryWrapper = new QueryWrapper<>();
|
|
|
if (i == 1) {
|
|
|
String num1 = NumberUtils.getNum(8000, 20001,0);//cod
|
|
|
- String num2 = NumberUtils.getNumFloat(1000.0, 1550.0);//nh3n
|
|
|
+ String num2 = NumberUtils.getNumFloat(1000.0, 1501.0);//nh3n
|
|
|
String num3 = NumberUtils.getNumFloat(100.0, 260.0);//tp
|
|
|
String num4 = NumberUtils.getNum(1000, 1550, 0);//tn
|
|
|
- String num5 = NumberUtils.getNum(0, 100, 0);//flow
|
|
|
+ String num5 = NumberUtils.getNum(0, 51, 0);//flow
|
|
|
|
|
|
protData.setCod(num1);
|
|
|
protData.setNh3n(num2);
|
|
@@ -267,7 +267,7 @@ public class ProtTimer {
|
|
|
protWarningInfo.setBuildLocation("处理口");
|
|
|
warningInfoMapper.insert(protWarningInfo);
|
|
|
}
|
|
|
- if (Double.parseDouble(num2) < Double.parseDouble(protThreshold.getNh3n2())) {
|
|
|
+ if (Double.parseDouble(num2) > Double.parseDouble(protThreshold.getNh3n2())) {
|
|
|
ProtWarningInfo protWarningInfo = new ProtWarningInfo();
|
|
|
protWarningInfo.setWarningContent("处理口NH3N值为" + num2 + "达到红色预警");
|
|
|
protWarningInfo.setWarningType(2);
|
|
@@ -279,7 +279,7 @@ public class ProtTimer {
|
|
|
protWarningInfo.setBuildLocation("处理口");
|
|
|
warningInfoMapper.insert(protWarningInfo);
|
|
|
}
|
|
|
- if (Double.parseDouble(num2) < Double.parseDouble(protThreshold.getNh3n1())) {
|
|
|
+ if (Double.parseDouble(num2) > Double.parseDouble(protThreshold.getNh3n1())) {
|
|
|
ProtWarningInfo protWarningInfo = new ProtWarningInfo();
|
|
|
protWarningInfo.setWarningContent("处理口NH3N值为" + num2 + "达到橙色预警");
|
|
|
protWarningInfo.setWarningType(2);
|