523096025 пре 1 година
родитељ
комит
51131250bd

+ 7 - 7
huimv-admin/src/main/java/com/huimv/admin/service/impl/ProtThresholdServiceImpl.java

@@ -166,19 +166,19 @@ public class ProtThresholdServiceImpl extends ServiceImpl<ProtThresholdMapper, P
 
 
                 if (Double.parseDouble(protThreshold.getCod2()) <= Double.parseDouble(protThreshold.getCod1())) {
-                    return new Result(ResultCode.FAIL, "Cod红色预警浓度不能低于橙色预警浓度");
+                    return new Result(10001, "Cod红色预警浓度不能低于橙色预警浓度",false);
                 } else if (Double.parseDouble(protThreshold.getPh2()) <= Double.parseDouble(protThreshold.getPh1())) {
-                    return new Result(ResultCode.FAIL, "高值ph红色预警浓度不能低于橙色预警浓度");
+                    return new Result(10001, "高值ph红色预警浓度不能低于橙色预警浓度",false);
                 } else if (Double.parseDouble(protThreshold.getOther3()) >= Double.parseDouble(protThreshold.getOther2())) {
-                    return new Result(ResultCode.FAIL, "低值ph红色预警浓度不能低于橙色预警浓度");
+                    return new Result(10001, "低值ph红色预警浓度不能低于橙色预警浓度",false);
                 } else if (Double.parseDouble(protThreshold.getNh3n2()) <= Double.parseDouble(protThreshold.getNh3n1())) {
-                    return new Result(ResultCode.FAIL, "NH3NH2红色预警浓度不能低于橙色预警浓度");
+                    return new Result(10001, "NH3NH2红色预警浓度不能低于橙色预警浓度",false);
                 } else if (Double.parseDouble(protThreshold.getTp2()) <= Double.parseDouble(protThreshold.getTp1())) {
-                    return new Result(ResultCode.FAIL, "TP红色预警浓度不能低于橙色预警浓度");
+                    return new Result(10001, "TP红色预警浓度不能低于橙色预警浓度",false);
                 } else if (Double.parseDouble(protThreshold.getTn2()) <= Double.parseDouble(protThreshold.getTn1())) {
-                    return new Result(ResultCode.FAIL, "TN红色预警浓度不能低于橙色预警浓度");
+                    return new Result(10001, "TN红色预警浓度不能低于橙色预警浓度",false);
                 } else if (Double.parseDouble(protThreshold.getFlow2()) <= Double.parseDouble(protThreshold.getFlow1())) {
-                    return new Result(ResultCode.FAIL, "流量红色预警浓度不能低于橙色预警浓度");
+                    return new Result(10001, "流量红色预警浓度不能低于橙色预警浓度",false);
                 } else {
 
                     if (ObjectUtil.isEmpty(threshold)) {