|
|
@@ -140,24 +140,15 @@
|
|
|
computingFormula,
|
|
|
pfc.bill_type billType,t.payer_obj_type,t.payer_obj_type payerObjType,pfc.is_default isDefault,pfc.start_time
|
|
|
configStartTime,pfc.end_time configEndTime,pfc.payment_cd paymentCd,pfc.payment_cycle paymentCycle,td4.name
|
|
|
- billTypeName
|
|
|
- from pay_fee t,pay_fee_config pfc,t_dict td1,t_dict td2,t_dict td3,t_dict td4
|
|
|
+ billTypeName,pfa.value importFeeName
|
|
|
+ from pay_fee t
|
|
|
+ INNER join pay_fee_config pfc on t.fee_type_cd = pfc.fee_type_cd and t.config_id = pfc.config_id and pfc.status_cd = '0'
|
|
|
+ left join t_dict td1 on pfc.fee_type_cd = td1.status_cd and td1.table_name = 'pay_fee_config' and td1.table_columns = 'fee_type_cd'
|
|
|
+ left join t_dict td2 on t.state = td2.status_cd and td2.table_name = 'pay_fee' and td2.table_columns = 'state'
|
|
|
+ left join t_dict td3 on t.fee_flag = td3.status_cd and td3.table_name = 'pay_fee' and td3.table_columns = 'fee_flag'
|
|
|
+ left join t_dict td4 on pfc.bill_type = td4.status_cd and td4.table_name = 'pay_fee_config' and td4.table_columns = 'bill_type'
|
|
|
+ LEFT JOIN pay_fee_attrs pfa on t.fee_id = pfa.fee_id and pfa.spec_cd = '390002' and pfa.status_cd = '0'
|
|
|
where 1 =1
|
|
|
- and t.fee_type_cd = pfc.fee_type_cd
|
|
|
- and t.config_id = pfc.config_id
|
|
|
- and pfc.status_cd = '0'
|
|
|
- and pfc.fee_type_cd = td1.status_cd
|
|
|
- and td1.table_name = 'pay_fee_config'
|
|
|
- and td1.table_columns = 'fee_type_cd'
|
|
|
- and t.state = td2.status_cd
|
|
|
- and td2.table_name = 'pay_fee'
|
|
|
- and td2.table_columns = 'state'
|
|
|
- and t.fee_flag = td3.status_cd
|
|
|
- and td3.table_name = 'pay_fee'
|
|
|
- and td3.table_columns = 'fee_flag'
|
|
|
- and pfc.bill_type = td4.status_cd
|
|
|
- and td4.table_name = 'pay_fee_config'
|
|
|
- and td4.table_columns = 'bill_type'
|
|
|
<if test="amount !=null and amount != ''">
|
|
|
and t.amount= #{amount}
|
|
|
</if>
|