From d6cb70708e6bb9e18cbc2fbc0034f3dd998fcd38 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Tue, 15 Sep 2020 14:49:07 +0800 Subject: [PATCH] 获取城市天气,aqi更新 --- src/main/resources/mapper/DeviceMapper.xml | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/resources/mapper/DeviceMapper.xml b/src/main/resources/mapper/DeviceMapper.xml index a4412cf..d0700b9 100644 --- a/src/main/resources/mapper/DeviceMapper.xml +++ b/src/main/resources/mapper/DeviceMapper.xml @@ -514,12 +514,13 @@ ) </select> - <select id="getDeviceListByMonitorPointIds" resultType="com.moral.entity.Device"> - select * from device where monitor_point_id in - <foreach item="item" collection="list" index="index" open="(" separator="," close=")">#{item}</foreach> - </select> + <select id="getMacsByMonitorPointIds" resultType="java.lang.String"> + select mac from device where monitor_point_id in + <foreach item="item" collection="list" index="index" open="(" separator="," close=")">#{item}</foreach> + and is_delete=0 + </select> - <select id="selectAllFieldByMac" resultType="java.util.Map"> + <select id="selectAllFieldByMac" resultType="java.util.Map"> SELECT * FROM device WHERE mac = #{mac} -- Gitblit v1.8.0