wuxw
2019-08-09 bf47d41dddf76c58a41692e492014499f9d433ae
java110-db/src/main/resources/mapper/parkingSpace/ParkingSpaceServiceDaoImplMapper.xml
@@ -39,7 +39,8 @@
</if> 
<if test="state !=null and state != ''">
   and t.state= #{state}
</if>
</if>
<if test="communityId !=null and communityId != ''">
   and t.community_id= #{communityId}
</if> 
@@ -119,7 +120,19 @@
</if> 
<if test="state !=null and state != ''">
   and t.state= #{state}
</if>
</if>
<if test="states != null and states != null">
    and t.state in
    <foreach collection="states" item="item" open="(" close=")" separator=",">
        #{item}
    </foreach>
</if>
<if test="psIds != null and psIds != null">
    and t.ps_id in
    <foreach collection="psIds" item="item" open="(" close=")" separator=",">
        #{item}
    </foreach>
</if>
<if test="communityId !=null and communityId != ''">
   and t.community_id= #{communityId}
</if> 
@@ -128,7 +141,8 @@
</if> 
<if test="userId !=null and userId != ''">
   and t.user_id= #{userId}
</if>
</if>
<if test="page != -1 and page != null ">
   limit #{page}, #{row}
</if> 
@@ -199,7 +213,13 @@
</if> 
<if test="state !=null and state != ''">
   and t.state= #{state}
</if>
</if>
 <if test="states != null and states != null">
     and t.state in
     <foreach collection="states" item="item" open="(" close=")" separator=",">
         #{item}
     </foreach>
 </if>
<if test="communityId !=null and communityId != ''">
   and t.community_id= #{communityId}
</if>