修复source问题

This commit is contained in:
2025-07-25 16:38:49 +08:00
parent 17b8ca110b
commit ed0397e9ca
2 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@
select s.scenic_id, s.device_id
from member_source ms
left join source s on ms.source_id = s.id
where ms.type = 1
where ms.type = 1 and s.id is not null
and s.create_time >= #{start}
and s.create_time <= #{end}
group by s.scenic_id, s.device_id, ms.face_id
@@ -59,7 +59,7 @@
select s.scenic_id, s.device_id
from member_source ms
left join source s on ms.source_id = s.id
where ms.type = 2
where ms.type = 2 and s.id is not null
and s.create_time >= #{start}
and s.create_time <= #{end}
group by s.scenic_id, s.device_id, ms.face_id