| | |
| | | group by a.owner_id,pfc.fee_type_cd,a.community_id |
| | | </select> |
| | | |
| | | |
| | | <!-- 优惠费用--> |
| | | <select id="getDiscountFee" parameterType="Map" resultType="Map"> |
| | | select SUM(t.discount_amount) discountFee |
| | | from pay_fee_detail_month t |
| | | where 1=1 |
| | | and t.status_cd = '0' |
| | | and t.detail_id != '-1' |
| | | and t.discount_amount > 0 |
| | | and t.community_id= #{communityId} |
| | | and t.cur_month_time > #{startDate} |
| | | and t.cur_month_time < #{endDate} |
| | | </select> |
| | | |
| | | <!-- 滞纳金费用--> |
| | | <select id="getLateFee" parameterType="Map" resultType="Map"> |
| | | select SUM(t.discount_amount) lateFee |
| | | from pay_fee_detail_month t |
| | | where 1=1 |
| | | and t.status_cd = '0' |
| | | and t.detail_id != '-1' |
| | | and t.discount_amount < 0 |
| | | and t.community_id= #{communityId} |
| | | and t.cur_month_time > #{startDate} |
| | | and t.cur_month_time < #{endDate} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |