|
|
@@ -283,10 +283,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.fee_year,t.fee_month
|
|
|
@@ -337,10 +337,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.fee_year,t.fee_month
|
|
|
@@ -393,10 +393,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -444,10 +444,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
GROUP BY t.fee_year,t.fee_month,f.floor_num,bu.unit_id,bu.unit_num
|
|
|
@@ -499,10 +499,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
GROUP BY t.fee_year,t.fee_month,f.floor_num,bu.unit_id,bu.unit_num
|
|
|
@@ -556,10 +556,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -615,10 +615,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and pfc.start_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and pfc.start_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.config_id,t.fee_name,pfc.start_time
|
|
|
@@ -675,10 +675,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and pfc.start_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and pfc.start_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.config_id,t.fee_name,pfc.start_time
|
|
|
@@ -737,10 +737,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and pfc.start_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and pfc.start_time <= #{endTime}
|
|
|
</if>
|
|
|
order by t.create_time desc
|
|
|
@@ -790,10 +790,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.config_id,t.fee_name,t.fee_create_time,t.obj_id,t.obj_name,t.deadline_time
|
|
|
@@ -845,10 +845,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.config_id,t.fee_name,t.fee_create_time,t.obj_id,t.obj_name
|
|
|
@@ -900,10 +900,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -947,10 +947,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.fee_name,t.payer_obj_id,t.payer_obj_name
|
|
|
@@ -996,10 +996,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
group by t.fee_name,t.payer_obj_id,t.payer_obj_name
|
|
|
@@ -1045,10 +1045,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -1120,10 +1120,10 @@
|
|
|
<if test="feeTypeCd != null and feeTypeCd != ''">
|
|
|
and pfc.fee_type_cd = #{feeTypeCd}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
) t
|
|
|
@@ -1202,10 +1202,10 @@
|
|
|
<if test="feeTypeCd != null and feeTypeCd != ''">
|
|
|
and pfc.fee_type_cd = #{feeTypeCd}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
order by t.create_time desc
|
|
|
@@ -1261,10 +1261,10 @@
|
|
|
<if test="primeRate != null and primeRate != ''">
|
|
|
and t.prime_rate = #{primeRate}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
</select>
|
|
|
@@ -1326,10 +1326,10 @@
|
|
|
<if test="primeRate != null and primeRate != ''">
|
|
|
and t.prime_rate = #{primeRate}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.create_time <= #{endTime}
|
|
|
</if>
|
|
|
group by fdr.discount_small_type
|
|
|
@@ -1384,10 +1384,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.deadline_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.deadline_time <= #{endTime}
|
|
|
</if>
|
|
|
) t
|
|
|
@@ -1441,10 +1441,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime !=''">
|
|
|
and t.deadline_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.deadline_time <= #{endTime}
|
|
|
</if>
|
|
|
order by t.deadline_time
|
|
|
@@ -1470,10 +1470,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.end_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.end_time <= #{endTime}
|
|
|
</if>
|
|
|
) t
|
|
|
@@ -1495,10 +1495,10 @@
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
|
- <if test="startTime !=null">
|
|
|
+ <if test="startTime !=null and startTime != ''">
|
|
|
and t.end_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime !=null">
|
|
|
+ <if test="endTime !=null and endTime != ''">
|
|
|
and t.end_time <= #{endTime}
|
|
|
</if>
|
|
|
<if test="page != -1 and page != null ">
|
|
|
@@ -2198,7 +2198,7 @@
|
|
|
select t.floor_num
|
|
|
from f_floor t
|
|
|
where 1=1
|
|
|
- and t.community_id= #{communityId}
|
|
|
+ and t.community_id= #{communityId}
|
|
|
GROUP BY t.floor_num
|
|
|
) tt
|
|
|
</select>
|