From cfd393ccb56a42f67ffaa35ed0887061ad0f2e66 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Fri, 06 Aug 2021 15:06:20 +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