From 2973f298e49fd8dff95065ef88d2997fe4eed338 Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Fri, 16 Oct 2020 11:18:19 +0800 Subject: [PATCH] 建立五分钟数据表以及读取一分钟表数据计算平均值到五分钟表的接口 --- src/main/resources/mapper/DeviceMapper.xml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/DeviceMapper.xml b/src/main/resources/mapper/DeviceMapper.xml index eca27c3..5b8fe34 100644 --- a/src/main/resources/mapper/DeviceMapper.xml +++ b/src/main/resources/mapper/DeviceMapper.xml @@ -295,4 +295,10 @@ <foreach item="item" collection="list" index="index" open="(" separator="," close=")">#{item}</foreach> and is_delete=0; </select> + + <select id="getAllByMacList" resultType="java.util.Map"> + select * from device + where mac in + <foreach item="item" collection="list" index="index" open="(" separator="," close=")">#{item}</foreach> + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0