Commit c2f2c985 authored by maoying's avatar maoying

修改三维数据查询接口探测器及视频条件

parent 84906d6c
......@@ -1294,7 +1294,6 @@
from
wl_video as vi
left join wl_video_source as visou on vi.id = visou.video_id
where visou.source_id is not null
group by vi.id
-- 建筑
UNION all
......@@ -1360,7 +1359,7 @@
left join wl_stock_detail as sto on sto.qr_code = spe.qr_code
left join wl_warehouse_structure as str on sto.warehouse_structure_id = str.source_id
left join f_risk_source as risk on str.source_id = risk.source_id
where substr(cat.code ,1,4) = '9204' and risk.source_id is not null
where substr(cat.code ,1,4) = '9204'
<if test="protectObjName != null and protectObjName != ''">
AND f.name = #{protectObjName}
</if>
......@@ -1549,7 +1548,7 @@
left join f_risk_source as risk on str.source_id = risk.source_id
left join f_equipment_fire_equipment fe on fe.fire_equipment_id = m.id
left join f_equipment f on f.id = fe.equipment_id
where substr(cat.code ,1,4) = '8501'
where substr(cat.code ,1,4) = '9204'
<if test="protectObjName != null and protectObjName != ''">
AND f.name = #{protectObjName}
</if>
......@@ -1588,7 +1587,6 @@
from wl_video as vi
left join wl_video_source as vis on vi.id = vis.video_id
LEFT JOIN wl_warehouse_structure AS ws ON ws.id = vis.source_id
where vis.source_id is not null
group by vi.id
UNION all
select concat('hydrant-',spe.id) as id,concat(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