|
|
@@ -962,13 +962,14 @@
|
|
|
<!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
|
|
|
<select id="queryOweFeeDetail" parameterType="Map" resultType="Map">
|
|
|
select t.payer_obj_name objName,t.fee_name feeName,pf.end_time feeCreateTime,t.update_time
|
|
|
- updateTime,SUM(t.amount_owed) oweAmount,max(t.deadline_time) deadlineTime
|
|
|
+ updateTime,pfa.`value` ownerName,br.built_up_area builtUpArea ,SUM(t.amount_owed) oweAmount,max(t.deadline_time) deadlineTime
|
|
|
from report_owe_fee t
|
|
|
inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0'
|
|
|
left join building_room br on t.payer_obj_id = br.room_id and t.payer_obj_type = '3333' and br.status_cd = '0'
|
|
|
left join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
|
|
|
left join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
|
|
|
inner join pay_fee pf on t.fee_id = pf.fee_id and pf.community_id = t.community_id and pf.status_cd = '0'
|
|
|
+ left join pay_fee_attrs pfa on pf.fee_id = pfa.fee_id and pfa.spec_cd = '390008' and pfa.status_cd ='0'
|
|
|
where 1=1
|
|
|
<if test="roomNum !=null and roomNum != ''">
|
|
|
and br.room_num= #{roomNum}
|
|
|
@@ -1003,7 +1004,7 @@
|
|
|
<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
|
|
|
+ group by t.fee_name,t.payer_obj_id,t.payer_obj_name,pfa.`value`,br.built_up_area
|
|
|
HAVING oweAmount > 0
|
|
|
<if test="page != -1 and page != null ">
|
|
|
limit #{page}, #{row}
|