Commit cb81ae18 by jianan

渠道发佣报表15

parent d2f1f5c3
...@@ -1004,7 +1004,7 @@ ...@@ -1004,7 +1004,7 @@
if(f.commission_period!=1,f.fyc_amount,'') '11' /*保单RYC*/, if(f.commission_period!=1,f.fyc_amount,'') '11' /*保单RYC*/,
cn.name '12' /*渠道*/, cn.name '12' /*渠道*/,
cn.account_no as '13' /*收款账户名称*/, cn.account_name as '13' /*收款账户名称*/,
sum(case when f.drop_option_code ='D01' then f.referral_amount else null end) '14' /*D01首年渠道服务费*/, sum(case when f.drop_option_code ='D01' then f.referral_amount else null end) '14' /*D01首年渠道服务费*/,
sum(case when f.drop_option_code ='D02' then f.referral_amount else null end) '15' /*D02续年渠道服务费*/, sum(case when f.drop_option_code ='D02' then f.referral_amount else null end) '15' /*D02续年渠道服务费*/,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment