fix(mapper): 修复设备事件查询中的线路关联条件

- 在 cs_line 表关联中添加 clDid 匹配条件
This commit is contained in:
xy
2026-04-24 11:28:12 +08:00
parent 8b183d84e9
commit e364ca1cae

View File

@@ -176,7 +176,7 @@
cs_event b
inner join cs_equipment_delivery c on b.device_id=c.id
<if test="csEventUserQueryPage != null and csEventUserQueryPage.type != null and csEventUserQueryPage.type != '' and csEventUserQueryPage.type ==0">
inner join cs_line d on d.device_id=b.device_id
inner join cs_line d on d.device_id = b.device_id and d.clDid=b.cl_did
</if>
where 1=1
and b.process=c.process