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