|
|
@@ -150,6 +150,8 @@
|
|
|
<select id="queryRentingPoolsCount" parameterType="Map" resultType="Map">
|
|
|
select count(1) count
|
|
|
from renting_pool t
|
|
|
+ left join t_dict td on td.status_cd = t.state and td.table_name = 'renting_pool' and td.table_columns = 'state'
|
|
|
+ left join t_dict td2 on td2.status_cd = t.payment_type and td2.table_name = 'renting_pool' and td2.table_columns = 'payment_type'
|
|
|
left join renting_config rc on t.renting_config_id = rc.renting_config_id and rc.status_cd = '0'
|
|
|
where 1 =1
|
|
|
<if test="latitude !=null and latitude != ''">
|
|
|
@@ -191,15 +193,23 @@
|
|
|
<if test="state !=null and state != ''">
|
|
|
and t.state= #{state}
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="rentingType !=null and rentingType != ''">
|
|
|
+ and rc.renting_type= #{rentingType}
|
|
|
+ </if>
|
|
|
+ <if test="states !=null ">
|
|
|
+ and t.state in
|
|
|
+ <foreach collection="states" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
<if test="longitude !=null and longitude != ''">
|
|
|
and t.longitude= #{longitude}
|
|
|
</if>
|
|
|
- <if test="rentingType !=null and rentingType != ''">
|
|
|
- and rc.renting_type= #{rentingType}
|
|
|
- </if>
|
|
|
|
|
|
|
|
|
</select>
|