(SELECT group_concat(referral_amount) from ag_acl_customer_fortune where order_id=f.order_id and drop_option_code ='C07' and practitioner_id = l.in_mentor_id) '42' /*二代辅导人岗位津贴*/,
l.s1_id '43' /*所属S1分部*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, calculation_rate)) from ag_acl_customer_fortune where drop_option_code ='C08' and order_id=f.order_id ) '44' /*S1团队达标奖金率*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, referral_amount)) from ag_acl_customer_fortune where drop_option_code ='C08' and order_id=f.order_id ) '45' /*'S1团队达标奖金¥(季度)'*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, calculation_rate)) from ag_acl_customer_fortune where drop_option_code ='C10' and order_id=f.order_id ) '46' /*S1团队长辅导津贴比率*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, referral_amount)) from ag_acl_customer_fortune where drop_option_code ='C10' and order_id=f.order_id ) '47' /*S1团队长辅导津贴*/,
LEFT JOIN ag_acl_practitioner a on a.customer_id = t.customer_id
LEFT JOIN ag_acl_practitioner_setting b on b.practitioner_id = a.id
LEFT JOIN ag_md_drop_options op1 ON op1.id = b.practitioner_level
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S1'
),
null) as '48' /*S1续期绩效奖金*/,
l.s2_id '49' /*所属S2体系*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, calculation_rate)) from ag_acl_customer_fortune where drop_option_code ='C08' and order_id=f.order_id ) '50' /*S2团队达标奖金率*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, referral_amount)) from ag_acl_customer_fortune where drop_option_code ='C08' and order_id=f.order_id ) '51' /*'S2团队达标奖金¥(季度)'*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, calculation_rate)) from ag_acl_customer_fortune where drop_option_code ='C10' and order_id=f.order_id ) '52' /*S2团队长辅导津贴比率*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, referral_amount)) from ag_acl_customer_fortune where drop_option_code ='C10' and order_id=f.order_id ) '53' /*S2团队长辅导津贴*/,
LEFT JOIN ag_acl_practitioner a on a.customer_id = t.customer_id
LEFT JOIN ag_acl_practitioner_setting b on b.practitioner_id = a.id
LEFT JOIN ag_md_drop_options op1 ON op1.id = b.practitioner_level
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S2'
),
null) as '54' /*S2续期绩效奖金*/,
l.s3_id '55' /*所属S3纵队*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, calculation_rate)) from ag_acl_customer_fortune where drop_option_code ='C08' and order_id=f.order_id ) '56' /*S3团队达标奖金率*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, referral_amount)) from ag_acl_customer_fortune where drop_option_code ='C08' and order_id=f.order_id ) '57' /*'S3团队达标奖金¥(季度)'*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, calculation_rate)) from ag_acl_customer_fortune where drop_option_code ='C10' and order_id=f.order_id ) '58' /*S3团队长辅导津贴比率*/,
(SELECT group_concat(CONCAT_WS('-', practitioner_id, referral_amount)) from ag_acl_customer_fortune where drop_option_code ='C10' and order_id=f.order_id ) '59' /*S3团队长辅导津贴*/,