From 482d6f8eb5f0d8152afa4f2d7d3feb6635d5c05d Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Fri, 02 Feb 2018 14:26:30 +0800
Subject: [PATCH] updated

---
 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