laoyao 3 年之前
父节点
当前提交
60c1d5fd40

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

@@ -124,7 +124,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}
@@ -147,6 +147,9 @@
         <if test="id != null and id != ''">
             and v.id = #{id}
         </if>
+        <if test="displayStatus != null and displayStatus != ''">
+            and v.display_status = #{displayStatus}
+        </if>
         <if test="isAutoCode != null and isAutoCode != ''">
             and v.is_auto_code = #{isAutoCode}
         </if>