Commit d221e4d9 authored by suhuiguang's avatar suhuiguang

1.修改过滤positon

parent cb821db6
...@@ -1391,42 +1391,44 @@ from (select concat('riskSource',r.id) as id,r.name,r.code,r.ue4_location as ue4 ...@@ -1391,42 +1391,44 @@ from (select concat('riskSource',r.id) as id,r.name,r.code,r.ue4_location as ue4
id as pointId, id as pointId,
name, name,
type, type,
risk_source_id as regionId risk_source_id as regionId,
position3d
from from
(select id,name,'riskSource' as type, parent_id as risk_source_id (select id,name,'riskSource' as type, parent_id as risk_source_id,position3d
from f_risk_source where is_region = 'FALSE' from f_risk_source where is_region = 'FALSE'
UNION all UNION all
select id,name,'patrol' as type,risk_source_id select id,name,'patrol' as type,risk_source_id,coordinates as position3d
from p_point WHERE is_delete = FALSE from p_point WHERE is_delete = FALSE
UNION all UNION all
select id,name ,'impEquipment' as type,risk_source_id select id,name ,'impEquipment' as type,risk_source_id,position3d
from f_equipment e from f_equipment e
UNION all UNION all
select id,name,'monitorEquipment' as type,risk_source_id select id,name,'monitorEquipment' as type,risk_source_id,position3d
from f_fire_equipment where equip_classify = 0 from f_fire_equipment where equip_classify = 0
UNION all UNION all
select id,name,'video' as type,risk_source_id select id,name,'video' as type,risk_source_id,position3d
from f_fire_equipment where equip_classify = 2 from f_fire_equipment where equip_classify = 2
UNION all UNION all
select id,name ,'hydrant' as type,risk_source_id select id,name ,'hydrant' as type,risk_source_id,position3d
from f_water_resource where type = 1 from f_water_resource where type = 1
UNION all UNION all
select id,name,'pool' as type,risk_source_id select id,name,'pool' as type,risk_source_id,position3d
from f_water_resource where type = 2 from f_water_resource where type = 2
UNION all UNION all
select id,name,'fireCar' as type,risk_source_id select id,name,'fireCar' as type,risk_source_id,position3d
from f_fire_car from f_fire_car
UNION all UNION all
select id,name,'fireEquipment' as type,risk_source_id select id,name,'fireEquipment' as type,risk_source_id,position3d
from f_fire_equipment where equip_classify = 3 from f_fire_equipment where equip_classify = 3
UNION all UNION all
select id,name,'fireChamber' as type,risk_source_id select id,name,'fireChamber' as type,risk_source_id,position3d
from f_fire_station where type = 2 from f_fire_station where type = 2
UNION all UNION all
select id,name,'fireFoamRoom' as type,risk_source_id select id,name,'fireFoamRoom' as type,risk_source_id,position3d
from f_fire_station where type = 1 from f_fire_station where type = 1
) as sp ) as sp
where where
position3d <![CDATA[<>]]> '' and
risk_source_id in risk_source_id in
<foreach collection="ids" open="(" separator="," close=")" item="id"> <foreach collection="ids" open="(" separator="," close=")" item="id">
#{id} #{id}
......
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