Commit 03cda351 by wenyang

新基本法2024(发佣检核清算报表)3

parent 7dfcedfc
...@@ -447,8 +447,8 @@ ...@@ -447,8 +447,8 @@
)) as '21' <!--经纪人职级-->, )) as '21' <!--经纪人职级-->,
if(f.grade_commission_rate is not null,f.grade_commission_rate,'100') as '22' <!--职级率-->, if(f.grade_commission_rate is not null,f.grade_commission_rate,'100') as '22' <!--职级率-->,
CONVERT(sum(case when drop_option_code ='C01' then f.referral_amount else null end),CHAR) as '23' <!--首年销售佣金-->, CONVERT(sum(case when drop_option_code ='C01' then f.referral_amount else null end),CHAR) as '23' <!--首年销售佣金-->,
CONVERT(sum(case when drop_option_code ='C04' then f.calculation_rate else '' end),CHAR) as '24' <!--'经纪人月销售加码奖金%'-->, CONVERT(sum(case when drop_option_code ='C04' then f.calculation_rate else null end),CHAR) as '24' <!--'经纪人月销售加码奖金%'-->,
CONVERT(sum(case when drop_option_code ='C04' then f.referral_amount else '' end),CHAR) as '25' <!--经纪人月销售加码奖金-->, CONVERT(sum(case when drop_option_code ='C04' then f.referral_amount else null end),CHAR) as '25' <!--经纪人月销售加码奖金-->,
CONVERT(sum(case when drop_option_code ='C02' then f.referral_amount else null end),CHAR) as '26' <!--续年销售佣金-->, CONVERT(sum(case when drop_option_code ='C02' then f.referral_amount else null end),CHAR) as '26' <!--续年销售佣金-->,
(SELECT group_concat(a.name) (SELECT group_concat(a.name)
from ag_acl_customer_fortune t from ag_acl_customer_fortune t
......
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