Commit 947f1bb4 authored by chenzhao's avatar chenzhao

修改代码

parent 22f0d9c3
...@@ -219,7 +219,16 @@ ...@@ -219,7 +219,16 @@
join wl_equipment as equ on eqdet.equipment_id = equ.id join wl_equipment as equ on eqdet.equipment_id = equ.id
join wl_equipment_category as cat on equ.category_id = cat.id join wl_equipment_category as cat on equ.category_id = cat.id
where det.amount > 0 where det.amount > 0
and spe.single = true) as da and spe.single = true
<if test="instanceId != null and instanceId !=''">
and stru.id IN
( select id from wl_warehouse_structure where parent_id in(
select id from wl_warehouse_structure where parent_id = #{instanceId})
union
select id from wl_warehouse_structure where parent_id = #{instanceId}or
id = #{instanceId} )
</if>
) as da
<if test="id != null and id !=''"> <if test="id != null and id !=''">
where find_in_set(#{id}, da.equipSyetemId) where find_in_set(#{id}, da.equipSyetemId)
</if> </if>
...@@ -253,6 +262,15 @@ ...@@ -253,6 +262,15 @@
wl_video AS vid wl_video AS vid
JOIN wl_video_source AS vis ON vid.id = vis.video_id JOIN wl_video_source AS vis ON vid.id = vis.video_id
JOIN wl_warehouse_structure AS stru ON stru.id = vis.source_id JOIN wl_warehouse_structure AS stru ON stru.id = vis.source_id
WHERE
stru.id IN
(
select id from wl_warehouse_structure where parent_id in(
select id from wl_warehouse_structure where parent_id = #{instanceId})
union
select id from wl_warehouse_structure where parent_id = #{instanceId}or
id = #{instanceId}
)
</if> </if>
</select> </select>
<select id="get3dPointData" resultType="com.yeejoin.equipmanage.common.entity.vo.PointTreeVo"> <select id="get3dPointData" resultType="com.yeejoin.equipmanage.common.entity.vo.PointTreeVo">
......
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