From 5b0347a811a6c948defb5320e71c43173280dfc2 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Tue, 06 Feb 2018 10:30:31 +0800
Subject: [PATCH] 更新

---
 src/main/resources/mapper/DeviceMapper.xml |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/DeviceMapper.xml b/src/main/resources/mapper/DeviceMapper.xml
index cb2cba0..bd99802 100644
--- a/src/main/resources/mapper/DeviceMapper.xml
+++ b/src/main/resources/mapper/DeviceMapper.xml
@@ -122,4 +122,23 @@
 		ORDER BY
 			s.id
 	</select>
+	<select id="getDeviceVersionIdByMonitorPoint" resultType="map">
+		SELECT
+		device_version_id deviceVersionId
+		FROM
+		device
+		WHERE
+		monitor_point_id = #{monitorPoint}
+		GROUP BY
+		device_version_id
+	</select>
+	<select id="getDeviceMacByMonitorPointAndDeviceVersion" resultType="string">
+		SELECT
+		mac
+		FROM
+		device
+		WHERE
+		monitor_point_id = #{monitorPointId}
+		AND device_version_id = #{deviceVersionId}
+	</select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0