From 32983a583c99c190ecb4361d72b6f13cd06fefc7 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Thu, 27 Aug 2020 10:22:57 +0800
Subject: [PATCH] 根据小时不同天气预测o3,光照

---
 src/main/resources/mapper/DeviceMapper.xml |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/mapper/DeviceMapper.xml b/src/main/resources/mapper/DeviceMapper.xml
index f490465..eca27c3 100644
--- a/src/main/resources/mapper/DeviceMapper.xml
+++ b/src/main/resources/mapper/DeviceMapper.xml
@@ -58,8 +58,8 @@
   <select id="selectWithOrgIdsByMac" parameterType="java.lang.String" resultMap="BaseResultWithOrgIdsMap">
     select
     <include refid="simple_Column_List" /> ,
-    dvn.version as device_version_value, 
-    den.limit_val, 
+    dvn.version as device_version_value,
+    den.limit_val,
     mp.province_code,
     mp.city_code,
     mp.area_code,
@@ -74,7 +74,7 @@
     where mac = #{mac,jdbcType=VARCHAR}
   </select>
   <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
-    select 
+    select
     <include refid="Base_Column_List" />
     from device
     where id = #{id,jdbcType=INTEGER}
@@ -254,8 +254,8 @@
 	FROM monitor_point mp, device d
 	WHERE mp.id = d.monitor_point_id
 	AND mp.organization_id IN
-		<foreach collection="organizationIdList" index="index" item="organizationId" open="(" separator="," close=")">  
-            #{organizationId}  
+		<foreach collection="organizationIdList" index="index" item="organizationId" open="(" separator="," close=")">
+            #{organizationId}
         </foreach>
 	AND d.is_delete = '0';
   </select>
@@ -278,7 +278,7 @@
         </foreach>
         AND d.is_delete = '0'
     </select>
-    
+
     <select id="macAndOrganizationIdMap" resultType="java.util.LinkedHashMap">
         select mac,organization_id as organizationId
         FROM monitor_point m,device d
@@ -290,5 +290,9 @@
         </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>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0