|
@@ -108,35 +108,35 @@ public class CenterdataTHousingconstructionStoragetankLogServiceImpl extends Bas
|
|
|
);
|
|
|
|
|
|
//液位上限
|
|
|
- if(storagetankLog.getLevel() >= MapUtils.getInteger(storagetank, "levelCeiling")){
|
|
|
+ if(storagetankLog.getLevel() >= MapUtils.getDouble(storagetank, "levelCeiling")){
|
|
|
//当前液位高于上限或低于下限, 触发时间告警
|
|
|
securityState.append("1").append(",");
|
|
|
sendEvent.sendEvent(template.toString(), StaticEntity.LEVEL_CEILING_NAME, MapUtils.getString(storagetank, "levelCeiling") + units.get(0), storagetankLog.getLevel() + units.get(0), sensorEventVo, StaticEntity.LEVEL_CEILING_CODE);
|
|
|
}
|
|
|
|
|
|
//液位下限
|
|
|
- if(storagetankLog.getLevel() <= MapUtils.getInteger(storagetank, "levelFloor")){
|
|
|
+ if(storagetankLog.getLevel() <= MapUtils.getDouble(storagetank, "levelFloor")){
|
|
|
//当前液位高于上限或低于下限, 触发时间告警
|
|
|
securityState.append("1").append(",");
|
|
|
sendEvent.sendEvent(template.toString(), StaticEntity.LEVEL_FLOOR_NAME, MapUtils.getString(storagetank, "levelFloor") + units.get(0), storagetankLog.getLevel() + units.get(0), sensorEventVo, StaticEntity.LEVEL_FLOOR_CODE);
|
|
|
}
|
|
|
|
|
|
//温度
|
|
|
- if(storagetankLog.getHeat() >= MapUtils.getInteger(storagetank, "heat")){
|
|
|
+ if(storagetankLog.getHeat() >= MapUtils.getDouble(storagetank, "heat")){
|
|
|
//当前温度高于设定温度阈值
|
|
|
securityState.append("2").append(",");
|
|
|
sendEvent.sendEvent(template.toString(), StaticEntity.HEAT_NAME, MapUtils.getString(storagetank, "heat") + units.get(1), storagetankLog.getHeat() + units.get(1), sensorEventVo, StaticEntity.HEAT_CODE);
|
|
|
}
|
|
|
|
|
|
//内部气压
|
|
|
- if(storagetankLog.getPressure() >= MapUtils.getInteger(storagetank, "pressure")){
|
|
|
+ if(storagetankLog.getPressure() >= MapUtils.getDouble(storagetank, "pressure")){
|
|
|
//当前内部气压高于设定阈值
|
|
|
securityState.append("3").append(",");
|
|
|
sendEvent.sendEvent(template.toString(), StaticEntity.PRESSURE_NAME, MapUtils.getString(storagetank, "pressure") + units.get(2), storagetankLog.getPressure() + units.get(2), sensorEventVo, StaticEntity.PRESSURE_CODE);
|
|
|
}
|
|
|
|
|
|
//可燃气体
|
|
|
- if(storagetankLog.getGasLeak() >= MapUtils.getInteger(storagetank, "gasLeak")){
|
|
|
+ if(storagetankLog.getGasLeak() >= MapUtils.getDouble(storagetank, "gasLeak")){
|
|
|
//可燃性气体泄露值高于设定的阈值
|
|
|
securityState.append("4").append(",");
|
|
|
sendEvent.sendEvent(template.toString(), StaticEntity.GAS_LEAK_NAME, MapUtils.getString(storagetank, "gasLeak") + units.get(3), storagetankLog.getGasLeak() + units.get(3), sensorEventVo, StaticEntity.GAS_LEAK_CODE);
|