|
@@ -916,7 +916,7 @@
|
|
|
pf.payer_obj_type payerObjType,t.start_time startTime,t.end_time endTime,t.create_time createTime,
|
|
pf.payer_obj_type payerObjType,t.start_time startTime,t.end_time endTime,t.create_time createTime,
|
|
|
t.receivable_amount receivableAmount,t.received_amount receivedAmount,pfa.`value`
|
|
t.receivable_amount receivableAmount,t.received_amount receivedAmount,pfa.`value`
|
|
|
importFeeName,t.prime_rate,d.name primeRate,fdr.discount_small_type discountSmallType,fdr.rule_name
|
|
importFeeName,t.prime_rate,d.name primeRate,fdr.discount_small_type discountSmallType,fdr.rule_name
|
|
|
- ruleName,pfdd.discount_price discountPrice
|
|
|
|
|
|
|
+ ruleName,pfdd.discount_price discountPrice,co.contract_code contractCode
|
|
|
from pay_fee_detail t
|
|
from pay_fee_detail t
|
|
|
INNER JOIN pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '0'
|
|
INNER JOIN pay_fee pf on t.fee_id = pf.fee_id and pf.status_cd = '0'
|
|
|
inner join pay_fee_config pfc on pf.config_id = pfc.config_id and pfc.status_cd = '0'
|
|
inner join pay_fee_config pfc on pf.config_id = pfc.config_id and pfc.status_cd = '0'
|
|
@@ -928,8 +928,8 @@
|
|
|
left join pay_fee_detail_discount pfdd on t.detail_id = pfdd.detail_id and pfdd.status_cd = '0'
|
|
left join pay_fee_detail_discount pfdd on t.detail_id = pfdd.detail_id and pfdd.status_cd = '0'
|
|
|
left join fee_discount fd on pfdd.discount_id = fd.discount_id and fd.status_cd = '0'
|
|
left join fee_discount fd on pfdd.discount_id = fd.discount_id and fd.status_cd = '0'
|
|
|
left join fee_discount_rule fdr on fd.rule_id = fdr.rule_id and fdr.status_cd = '0'
|
|
left join fee_discount_rule fdr on fd.rule_id = fdr.rule_id and fdr.status_cd = '0'
|
|
|
- left join t_dict d on t.prime_rate = d.status_cd and d.table_name="pay_fee_detail" and
|
|
|
|
|
- d.table_columns="prime_rate"
|
|
|
|
|
|
|
+ left join t_dict d on t.prime_rate = d.status_cd and d.table_name="pay_fee_detail" and d.table_columns="prime_rate"
|
|
|
|
|
+ LEFT JOIN contract co on pf.payer_obj_id = co.contract_id and co.status_cd = '0' and pf.payer_obj_type='7777'
|
|
|
where t.status_cd = '0'
|
|
where t.status_cd = '0'
|
|
|
<if test="roomNum !=null and roomNum != ''">
|
|
<if test="roomNum !=null and roomNum != ''">
|
|
|
and br.room_num= #{roomNum}
|
|
and br.room_num= #{roomNum}
|