laoyao 3 anni fa
parent
commit
ae2736f1c9

+ 2 - 1
imcs-admin-boot/imcs-tenant-biz/src/main/resources/mapper_tenant/base/defaults/ProductionresourceviewMapper.xml

@@ -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>
         <if test="code != null and code != ''">
             and v.code = #{code}