Browse Source

机柜烟感报警值整改

develop
wangsixiang 4 days ago
parent
commit
e3228c60f4
  1. 2
      zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java

2
zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java

@ -1845,7 +1845,7 @@ private VideoController videoController;
continue; continue;
} }
String value = data.get("value").toString();//属性值 String value = data.get("value").toString();//属性值
if (Integer.parseInt(value)>=400){ if (Integer.parseInt(value)>=Integer.parseInt(configService.selectConfigByKey("cabinetSmokeDetectorAlarm"))){
String cacheMapValue = redisCache.getCacheMapValue(SOMKEVALUE, device.getIotDeviceId());//查询缓存 String cacheMapValue = redisCache.getCacheMapValue(SOMKEVALUE, device.getIotDeviceId());//查询缓存
if (cacheMapValue==null||"".equals(cacheMapValue)){//缓存不存在,加入数据加入缓存 if (cacheMapValue==null||"".equals(cacheMapValue)){//缓存不存在,加入数据加入缓存
DcSmokeRecord dcSmokeRecord = new DcSmokeRecord(); DcSmokeRecord dcSmokeRecord = new DcSmokeRecord();

Loading…
Cancel
Save