Commit 21b2c8a9 by jianan

保单发佣明细报表2.2

parent 8d06283d
...@@ -572,7 +572,7 @@ ...@@ -572,7 +572,7 @@
where t.drop_option_code ='C10' and order_id=f.order_id and t.sale_practitioner_id=l.practitioner_id and a.id=l.s3_team_leader_id where t.drop_option_code ='C10' and order_id=f.order_id and t.sale_practitioner_id=l.practitioner_id and a.id=l.s3_team_leader_id
) '59' /*S3团队长辅导津贴*/, ) '59' /*S3团队长辅导津贴*/,
(SELECT group_concat(sale_practitioner_id) from ag_acl_customer_fortune where drop_option_code ='C09' and order_id=f.order_id and sale_practitioner_id = l.practitioner_id) '60' /*S1育成人*/, (SELECT group_concat(sale_practitioner_id) from ag_acl_customer_fortune where drop_option_code ='C09' and order_id=f.order_id and sale_practitioner_id = l.raise_id) '60' /*S1育成人*/,
(SELECT group_concat(op1.drop_option_name) (SELECT group_concat(op1.drop_option_name)
from ag_acl_customer_fortune t from ag_acl_customer_fortune t
LEFT JOIN ag_acl_practitioner a on a.customer_id = t.customer_id LEFT JOIN ag_acl_practitioner a on a.customer_id = t.customer_id
......
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