|
|
|
@ -232,7 +232,8 @@ public class RootCloudIotDataFormatterJob { |
|
|
|
|
|
|
|
// 通过时间范围对数据进行过滤 |
|
|
|
// 查询redis缓存是否存在该摄像头的休眠时间范围 |
|
|
|
String redisValue = jedis.hget(redisKey, value.getCameraId().toString()); |
|
|
|
// todo 待放开 |
|
|
|
/*String redisValue = jedis.hget(redisKey, value.getCameraId().toString()); |
|
|
|
if (StringUtils.isNotBlank(redisValue)) { |
|
|
|
JSONObject jsonObject = JSONUtil.parseObj(redisValue); |
|
|
|
String startLocalTime = jsonObject.getStr(START_LOCAL_TIME); |
|
|
|
@ -251,7 +252,7 @@ public class RootCloudIotDataFormatterJob { |
|
|
|
String[] endLocalTimeSplit = endLocalTime.split(":"); |
|
|
|
if (checkLocalTime(value, startLocalTime, startLocalTimeSplit, endLocalTime, endLocalTimeSplit)) return; |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
String query = "select * from qn_ai_alarm where id = ?"; |
|
|
|
AIWarningDataReceivedEvent.Alarm image = value.getAlarmList().get(0); |
|
|
|
Entity alarm = Db.use().queryOne(query, image.getAlarmId()); |
|
|
|
|