Commit 9901eb40 authored by tangwei's avatar tangwei

修改sql

parent 947dffb9
......@@ -2183,17 +2183,16 @@
</select>
<select id="getwater" resultType="java.util.Map">
SELECT
ei.equipment_specific_id
r.*
FROM
cb_water_resource r
LEFT JOIN cb_water_resource_pool rp ON rp.resource_id = r.sequence_nbr
LEFT JOIN wl_equipment_specific_index ei ON ei.equipment_specific_id = rp.level_device_id
WHERE
r.resource_type in ( 'industryPool','pool')
AND r.is_delete = 1
and ei.equipment_specific_id is not null
and ei.equipment_specific_id =#{id}
and FIND_IN_SET( #{id}, rp.level_device_id) > 0
</select>
......
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