Commit 159f671c authored by zhengjiawei's avatar zhengjiawei

sql修改

parent c728e111
...@@ -1503,6 +1503,8 @@ ...@@ -1503,6 +1503,8 @@
from wl_video as vi from wl_video as vi
left join wl_video_source as vis on vi.id = vis.video_id left join wl_video_source as vis on vi.id = vis.video_id
left join f_risk_source as sou on sou.id = vis.source_id left join f_risk_source as sou on sou.id = vis.source_id
where vis.source_id is not null
group by vi.id
UNION all UNION all
select concat('hydrant-',spe.id) as id,spe.id as originId,det.name,spe.code as code,null as ue4Location,null as ue4Rotation ,'hydrant' as type,spe.org_code as orgCode, select concat('hydrant-',spe.id) as id,spe.id as originId,det.name,spe.code as code,null as ue4Location,null as ue4Rotation ,'hydrant' as type,spe.org_code as orgCode,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment