瀏覽代碼

优化删除子母车位

Your Name 3 年之前
父節點
當前提交
3ece45eb29
共有 1 個文件被更改,包括 12 次插入 和 0 次删除
  1. 12 0
      java110-db/src/main/resources/mapper/community/ParkingSpaceV1ServiceDaoImplMapper.xml

+ 12 - 0
java110-db/src/main/resources/mapper/community/ParkingSpaceV1ServiceDaoImplMapper.xml

@@ -51,6 +51,12 @@
         <if test="state !=null and state != ''">
         <if test="state !=null and state != ''">
             and t.state= #{state}
             and t.state= #{state}
         </if>
         </if>
+        <if test="states !=null">
+            and t.state in
+            <foreach collection="states" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="communityId !=null and communityId != ''">
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
             and t.community_id= #{communityId}
         </if>
         </if>
@@ -131,6 +137,12 @@
         <if test="state !=null and state != ''">
         <if test="state !=null and state != ''">
             and t.state= #{state}
             and t.state= #{state}
         </if>
         </if>
+        <if test="states !=null">
+            and t.state in
+            <foreach collection="states" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="communityId !=null and communityId != ''">
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
             and t.community_id= #{communityId}
         </if>
         </if>