Sfoglia il codice sorgente

告警中心查询bug处理

jingyuanchao 10 mesi fa
parent
commit
04c6fc1b37

+ 2 - 2
soc-modules/soc-modules-iot/src/main/resources/mapper/IotAlarmDataMapper.xml

@@ -9,11 +9,11 @@
         b.short_name AS org_name
         FROM
         iot_alarm_data a
-        LEFT JOIN sys_org b ON a.org_id = b.id
+        inner JOIN sys_org b ON a.org_id = b.id
         <if test="param.orgPath != null and param.orgPath != ''">
             and b.path like concat(#{param.orgPath},'%')
         </if>
-        LEFT JOIN iot_device_info d ON a.device_id = d.id and d.deleted = 0
+        inner JOIN iot_device_info d ON a.device_id = d.id and d.deleted = 0
         where 1=1
         <if test="param.deviceName != null and param.deviceName != ''">
             and a.device_name like concat('%',#{param.deviceName},'%')