From 8fc6c4e3c0a314305a33166b438257c6dbdbb831 Mon Sep 17 00:00:00 2001 From: "1049970895@qniao.cn" <1049970895> Date: Thu, 8 Jun 2023 15:39:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8A=A5=E8=AD=A6=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rootcloudstatistics/RootCloudIotDataFormatterJob.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ai-root-cloud-statistics/src/main/java/com/qniao/rootcloudstatistics/RootCloudIotDataFormatterJob.java b/ai-root-cloud-statistics/src/main/java/com/qniao/rootcloudstatistics/RootCloudIotDataFormatterJob.java index 226bdc5..4c42c1a 100644 --- a/ai-root-cloud-statistics/src/main/java/com/qniao/rootcloudstatistics/RootCloudIotDataFormatterJob.java +++ b/ai-root-cloud-statistics/src/main/java/com/qniao/rootcloudstatistics/RootCloudIotDataFormatterJob.java @@ -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());