@@ -49,6 +49,7 @@
LEFT JOIN (
SELECT
zp.resource_id,
+ z.id zoneId,
z. NAME zoneName
FROM
imcs_z_zone z
@@ -64,7 +65,7 @@
</if>
where 1=1
<if test="zoneId != null">
- and v.id in(select resource_id from imcs_z_zone_productionresource e where e.zone_id = #{zoneId})
+ and a.zoneId = #{zoneId}
<if test="code != null and code != ''">
and v.code = #{code}