|
@ -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(); |
|
|