Commit 9901eb40 authored by tangwei's avatar tangwei

修改sql

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