From 3bc57d8582d3d13e7e653b0f04dd09742c3b2c15 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Mon, 23 Aug 2021 10:20:26 +0800
Subject: [PATCH] 走航车轨迹数据单因子-》所有因子
---
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