Bladeren bron

优化查询

java110 5 jaren geleden
bovenliggende
commit
cfad1cebdc

+ 12 - 0
java110-db/src/main/resources/mapper/store/AllocationStorehouseServiceDaoImplMapper.xml

@@ -120,6 +120,12 @@
         <if test="asId !=null and asId != ''">
             and t.as_id= #{asId}
         </if>
+        <if test="asIds !=null ">
+            and t.as_id in
+            <foreach collection="asIds" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
         </if>
@@ -212,6 +218,12 @@
         <if test="asId !=null and asId != ''">
             and t.as_id= #{asId}
         </if>
+        <if test="asIds !=null ">
+            and t.as_id in
+            <foreach collection="asIds" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
         </if>