电压树状图查询修改

dev
liuguijing 1 year ago
parent ab389fe55e
commit c045fc36f6

@ -207,24 +207,29 @@
left join terminals d on c.id = d.tower_id ) left join terminals d on c.id = d.tower_id )
left join terminal_status e on e.term_id = d.id) left join terminal_status e on e.term_id = d.id)
where b.status = #{status} and a.status = #{status} and c.status = #{status} and d.status = #{status} where b.status = #{status} and a.status = #{status} and c.status = #{status} and d.status = #{status}
<if test="dyid != null and dyid.size > 0 and lineid != null and lineid.size > 0 and towerid != null and towerid.size > 0">
and (
false
<if test="dyid != null and dyid.size > 0"> <if test="dyid != null and dyid.size > 0">
and a.id in or a.id in
<foreach collection="dyid" item="id" index="index" separator="," open="(" close=")"> <foreach collection="dyid" item="id" index="index" separator="," open="(" close=")">
#{id} #{id}
</foreach> </foreach>
</if> </if>
<if test="lineid != null and lineid.size > 0"> <if test="lineid != null and lineid.size > 0">
and b.id in or b.id in
<foreach collection="lineid" item="id" index="index" separator="," open="(" close=")"> <foreach collection="lineid" item="id" index="index" separator="," open="(" close=")">
#{id} #{id}
</foreach> </foreach>
</if> </if>
<if test="towerid != null and towerid.size > 0"> <if test="towerid != null and towerid.size > 0">
and c.id in or c.id in
<foreach collection="towerid" item="id" index="index" separator="," open="(" close=")"> <foreach collection="towerid" item="id" index="index" separator="," open="(" close=")">
#{id} #{id}
</foreach> </foreach>
</if> </if>
)
</if>
</select> </select>
<select id="selectListTreeList" resultMap="LineAndTerminalMap"> <select id="selectListTreeList" resultMap="LineAndTerminalMap">

Loading…
Cancel
Save