From 93fe0b66e85e95e3a7e77a28504d6d289b6906b9 Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Fri, 08 Oct 2021 13:11:22 +0800 Subject: [PATCH] screen-manage screen-api 更改拦截器逻辑,记录token无效的请求IP以及URL。 manage记录到数据库日志中 api记录在日志文件中 --- screen-api/src/main/resources/mapper/HistorySecondSpecialMapper.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/screen-api/src/main/resources/mapper/HistorySecondSpecialMapper.xml b/screen-api/src/main/resources/mapper/HistorySecondSpecialMapper.xml index 207f6a3..989922f 100644 --- a/screen-api/src/main/resources/mapper/HistorySecondSpecialMapper.xml +++ b/screen-api/src/main/resources/mapper/HistorySecondSpecialMapper.xml @@ -12,13 +12,13 @@ </resultMap> <select id="getSpecialDeviceData" resultType="java.util.Map"> - SELECT JSON_UNQUOTE(`value`->'$.${sensorCode}') AS '${sensorCode}', - JSON_UNQUOTE(`value`->'$.flylon') AS 'flylon', - JSON_UNQUOTE(`value`->'$.flylat') AS 'flylat', - DATE_FORMAT(`time`, #{dateFormat}) AS 'time' + SELECT + DATE_FORMAT(`time`, #{dateFormat}) AS `time`, + `value` FROM `history_second_special` WHERE mac = #{mac} AND `time` LIKE #{time}"%" + AND organization_id = #{orgId} </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0