From 68294b3a156d2c0573c04f1ac43940a55e397269 Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Tue, 15 Sep 2020 15:38:02 +0800 Subject: [PATCH] 登陆接口测试 --- 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