|
@@ -1788,6 +1788,9 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
|
|
|
}
|
|
}
|
|
|
//判断值范围 在范围内存储预案ID和类型名称 (火焰,温度,湿度)
|
|
//判断值范围 在范围内存储预案ID和类型名称 (火焰,温度,湿度)
|
|
|
if ((senseVal >= labRiskPlanSensorRelation.getMinMonitor().floatValue()) && (senseVal <= labRiskPlanSensorRelation.getMaxMonitor().floatValue())) {
|
|
if ((senseVal >= labRiskPlanSensorRelation.getMinMonitor().floatValue()) && (senseVal <= labRiskPlanSensorRelation.getMaxMonitor().floatValue())) {
|
|
|
|
|
+ if(funNumStr.indexOf(funNum) != -1){
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
count++;
|
|
count++;
|
|
|
funNumStr.append(funNum).append("、");
|
|
funNumStr.append(funNum).append("、");
|
|
|
// if (funNum.equals(RiskPlanConstants.TEMPERATURE_FUN_NUM) || funNum.equals(RiskPlanConstants.SMOKE_FUN_NUM)){
|
|
// if (funNum.equals(RiskPlanConstants.TEMPERATURE_FUN_NUM) || funNum.equals(RiskPlanConstants.SMOKE_FUN_NUM)){
|
|
@@ -2107,7 +2110,7 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
|
|
|
return ResultData.success(map);
|
|
return ResultData.success(map);
|
|
|
}
|
|
}
|
|
|
map.put("ifConflict","1");
|
|
map.put("ifConflict","1");
|
|
|
- map.put("message",tipsStr.substring(1) + "中绑定的预案与当前预案存在监测数值冲突,是否替换为当前预案?");
|
|
|
|
|
|
|
+ map.put("message",tipsStr.substring(0,tipsStr.length() - 1) + "中绑定的预案与当前预案存在监测数值冲突,是否替换为当前预案?");
|
|
|
return ResultData.success(map);
|
|
return ResultData.success(map);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|