From 50c10e9abd052b09d78441b01ed76a91121550c8 Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Mon, 13 Sep 2021 13:38:14 +0800
Subject: [PATCH] screen-api                   更改无人机数据过滤距离为2m

---
 screen-api/src/main/resources/mapper/DeviceMapper.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/screen-api/src/main/resources/mapper/DeviceMapper.xml b/screen-api/src/main/resources/mapper/DeviceMapper.xml
index 94cde21..5c54941 100644
--- a/screen-api/src/main/resources/mapper/DeviceMapper.xml
+++ b/screen-api/src/main/resources/mapper/DeviceMapper.xml
@@ -28,11 +28,14 @@
 
     <!--���������������������������-->
     <select id="getTrendChartData" resultType="java.util.Map">
-        SELECT
+        SELECT mac,
         DATE_FORMAT(`time`,#{dateFormat}) AS `time`,
         `value`->'$.${sensorCode}' AS '${sensorCode}'
         FROM history_${timeUnits}
-        WHERE mac = #{mac}
+        WHERE mac IN
+            <foreach collection="macs" item="mac" index="index" open="(" close=")" separator=",">
+                #{mac}
+            </foreach>
         AND `time` <![CDATA[>=]]> #{start}
         AND `time` <![CDATA[<]]> #{end}
         ORDER BY `time`

--
Gitblit v1.8.0