|
@@ -156,10 +156,16 @@
|
|
|
LEFT JOIN pay_fee_attrs pfa on t.fee_id = pfa.fee_id and pfa.spec_cd = '390002' and pfa.status_cd = '0'
|
|
LEFT JOIN pay_fee_attrs pfa on t.fee_id = pfa.fee_id and pfa.spec_cd = '390002' and pfa.status_cd = '0'
|
|
|
left join import_fee_detail ifd on t.fee_id = ifd.fee_id and ifd.status_cd = '0' and t.fee_flag = '2006012'
|
|
left join import_fee_detail ifd on t.fee_id = ifd.fee_id and ifd.status_cd = '0' and t.fee_flag = '2006012'
|
|
|
LEFT JOIN meter_water mw on t.fee_id = mw.fee_id and mw.status_cd = '0' and mw.community_id = t.community_id
|
|
LEFT JOIN meter_water mw on t.fee_id = mw.fee_id and mw.status_cd = '0' and mw.community_id = t.community_id
|
|
|
|
|
+ <if test="ownerId != null and ownerId != ''">
|
|
|
|
|
+ LEFT JOIN pay_fee_attrs pfa on t.fee_id = pfa.fee_id and pfa.spec_cd = '390007' and pfa.status_cd = '0'
|
|
|
|
|
+ </if>
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="amount !=null and amount != ''">
|
|
<if test="amount !=null and amount != ''">
|
|
|
and t.amount= #{amount}
|
|
and t.amount= #{amount}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="ownerId !=null and ownerId != ''">
|
|
|
|
|
+ and pfa.value= #{ownerId}
|
|
|
|
|
+ </if>
|
|
|
<if test="incomeObjId !=null and incomeObjId != ''">
|
|
<if test="incomeObjId !=null and incomeObjId != ''">
|
|
|
and t.income_obj_id= #{incomeObjId}
|
|
and t.income_obj_id= #{incomeObjId}
|
|
|
</if>
|
|
</if>
|
|
@@ -276,6 +282,9 @@
|
|
|
<select id="queryFeesCount" parameterType="Map" resultType="Map">
|
|
<select id="queryFeesCount" parameterType="Map" resultType="Map">
|
|
|
select count(1) count
|
|
select count(1) count
|
|
|
from pay_fee t,pay_fee_config pfc,t_dict td1,t_dict td2,t_dict td3,t_dict td4
|
|
from pay_fee t,pay_fee_config pfc,t_dict td1,t_dict td2,t_dict td3,t_dict td4
|
|
|
|
|
+ <if test="ownerId != null and ownerId != ''">
|
|
|
|
|
+ ,pay_fee_attrs pfa
|
|
|
|
|
+ </if>
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
and t.fee_type_cd = pfc.fee_type_cd
|
|
and t.fee_type_cd = pfc.fee_type_cd
|
|
|
and t.config_id = pfc.config_id
|
|
and t.config_id = pfc.config_id
|
|
@@ -292,6 +301,12 @@
|
|
|
and pfc.bill_type = td4.status_cd
|
|
and pfc.bill_type = td4.status_cd
|
|
|
and td4.table_name = 'pay_fee_config'
|
|
and td4.table_name = 'pay_fee_config'
|
|
|
and td4.table_columns = 'bill_type'
|
|
and td4.table_columns = 'bill_type'
|
|
|
|
|
+ <if test="ownerId != null and ownerId != ''">
|
|
|
|
|
+ and t.fee_id = pfa.fee_id
|
|
|
|
|
+ and pfa.spec_cd = '390007'
|
|
|
|
|
+ and pfa.status_cd = '0'
|
|
|
|
|
+ and pfa.value= #{ownerId}
|
|
|
|
|
+ </if>
|
|
|
<if test="amount !=null and amount != ''">
|
|
<if test="amount !=null and amount != ''">
|
|
|
and t.amount= #{amount}
|
|
and t.amount= #{amount}
|
|
|
</if>
|
|
</if>
|
|
@@ -472,7 +487,8 @@
|
|
|
inner join bill b on t.bill_id = b.bill_id and b.community_id = t.community_id and b.cur_bill = #{curBill}
|
|
inner join bill b on t.bill_id = b.bill_id and b.community_id = t.community_id and b.cur_bill = #{curBill}
|
|
|
</if>
|
|
</if>
|
|
|
left join pay_fee pf on t.fee_id = pf.fee_id and t.community_id = pf.community_id and pf.status_cd = '0'
|
|
left join pay_fee pf on t.fee_id = pf.fee_id and t.community_id = pf.community_id and pf.status_cd = '0'
|
|
|
- left join t_dict td on pf.fee_type_cd = td.status_cd and td.table_name = 'pay_fee_config' and td.table_columns = 'fee_type_cd'
|
|
|
|
|
|
|
+ left join t_dict td on pf.fee_type_cd = td.status_cd and td.table_name = 'pay_fee_config' and td.table_columns =
|
|
|
|
|
+ 'fee_type_cd'
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="oweId !=null and oweId != ''">
|
|
<if test="oweId !=null and oweId != ''">
|
|
|
and t.owe_id= #{oweId}
|
|
and t.owe_id= #{oweId}
|