소스 검색

告警中心查询bug处理

jingyuanchao 10 달 전
부모
커밋
04c6fc1b37
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      soc-modules/soc-modules-iot/src/main/resources/mapper/IotAlarmDataMapper.xml

+ 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},'%')