Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
d8221a36
Commit
d8221a36
authored
Feb 24, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4and5-保单发佣明细报表11
parent
3054c694
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+14
-14
No files found.
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
d8221a36
...
...
@@ -487,28 +487,28 @@
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'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S1'
and t.sale_practitioner_id=l.practitioner_id
) '44' /*S1团队达标奖金率*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
from ag_acl_customer_fortune t
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'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S1'
and t.sale_practitioner_id=l.practitioner_id
) '45' /*'S1团队达标奖金¥(季度)'*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, calculation_rate))
from ag_acl_customer_fortune t
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 ='C10' and order_id=f.order_id and op1.drop_option_code='S1'
where t.drop_option_code ='C10' and order_id=f.order_id and op1.drop_option_code='S1'
and t.sale_practitioner_id=l.practitioner_id
) '46' /*S1团队长辅导津贴比率*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
from ag_acl_customer_fortune t
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 ='C10' and order_id=f.order_id and op1.drop_option_code='S1'
where t.drop_option_code ='C10' and order_id=f.order_id and op1.drop_option_code='S1'
and t.sale_practitioner_id=l.practitioner_id
) '47' /*S1团队长辅导津贴*/,
if(f.commission_period!=1,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
...
...
@@ -516,7 +516,7 @@
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'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S1'
and t.sale_practitioner_id=l.practitioner_id
),
null) as '48' /*S1续期绩效奖金*/,
...
...
@@ -526,28 +526,28 @@
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'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S2'
and t.sale_practitioner_id=l.practitioner_id
) '50' /*S2团队达标奖金率*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
from ag_acl_customer_fortune t
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'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S2'
and t.sale_practitioner_id=l.practitioner_id
) '51' /*'S2团队达标奖金¥(季度)'*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, calculation_rate))
from ag_acl_customer_fortune t
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 ='C10' and order_id=f.order_id and op1.drop_option_code='S2'
where t.drop_option_code ='C10' and order_id=f.order_id and op1.drop_option_code='S2'
and t.sale_practitioner_id=l.practitioner_id
) '52' /*S2团队长辅导津贴比率*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
from ag_acl_customer_fortune t
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 ='C10' and order_id=f.order_id and op1.drop_option_code='S2'
where t.drop_option_code ='C10' and order_id=f.order_id and op1.drop_option_code='S2'
and t.sale_practitioner_id=l.practitioner_id
) '53' /*S2团队长辅导津贴*/,
if(f.commission_period!=1,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
...
...
@@ -555,7 +555,7 @@
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'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S2'
and t.sale_practitioner_id=l.practitioner_id
),
null) as '54' /*S2续期绩效奖金*/,
...
...
@@ -565,28 +565,28 @@
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='S3'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S3'
and t.sale_practitioner_id=l.practitioner_id
) '56' /*S3团队达标奖金率*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
from ag_acl_customer_fortune t
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='S3'
where t.drop_option_code ='C08' and order_id=f.order_id and op1.drop_option_code='S3'
and t.sale_practitioner_id=l.practitioner_id
) '57' /*'S3团队达标奖金¥(季度)'*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, calculation_rate))
from ag_acl_customer_fortune t
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 ='C10' and order_id=f.order_id and op1.drop_option_code='S3'
where t.drop_option_code ='C10' and order_id=f.order_id and op1.drop_option_code='S3'
and t.sale_practitioner_id=l.practitioner_id
) '58' /*S3团队长辅导津贴比率*/,
(SELECT group_concat(CONCAT_WS('-', t.practitioner_id, referral_amount))
from ag_acl_customer_fortune t
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 ='C10' and order_id=f.order_id and op1.drop_option_code='S3'
where t.drop_option_code ='C10' and order_id=f.order_id and op1.drop_option_code='S3'
and t.sale_practitioner_id=l.practitioner_id
) '59' /*S3团队长辅导津贴*/,
l.raise_id '60' /*育成人*/,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment