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
61c80a16
Commit
61c80a16
authored
Apr 11, 2022
by
akexiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commision_id关联查询调整
parent
f523da78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+6
-2
No files found.
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
61c80a16
...
@@ -442,7 +442,9 @@
...
@@ -442,7 +442,9 @@
<sql
id=
"sheet2Data1"
>
<sql
id=
"sheet2Data1"
>
select
select
ifnull((SELECT t.commission_time FROM ag_po_order_commission t WHERE t.id= f.commission_id),
ifnull((SELECT t.commission_time FROM ag_po_order_commission t WHERE /*t.id= f.commission_id*/
t.commission_status='2' and t.commission_type='1'
and t.order_id=f.order_id and t.commission_period=f.commission_period limit 1),
if(f.payout_batch_id is not null,(SELECT t.payout_yearmonth FROM ag_acl_customer_fortune_payout_batch t WHERE t.id= f.payout_batch_id), '')
if(f.payout_batch_id is not null,(SELECT t.payout_yearmonth FROM ag_acl_customer_fortune_payout_batch t WHERE t.id= f.payout_batch_id), '')
) '0' /*对账月*/,
) '0' /*对账月*/,
(select name from ag_acl_policyholder where order_id = f.order_id and type=2) '1',
(select name from ag_acl_policyholder where order_id = f.order_id and type=2) '1',
...
@@ -854,7 +856,9 @@
...
@@ -854,7 +856,9 @@
<if
test=
"list2.size() > 0"
>
<if
test=
"list2.size() > 0"
>
UNION ALL
UNION ALL
select
select
(SELECT t.commission_time FROM ag_po_order_commission t WHERE t.id= f.commission_id) '0' /*对账月*/,
(SELECT t.commission_time FROM ag_po_order_commission t WHERE /*t.id= f.commission_id*/
t.commission_status='2' and t.commission_type='1'
and t.order_id=f.order_id and t.commission_period=f.commission_period limit 1 ) '0' /*对账月*/,
(select name from ag_acl_policyholder where order_id = f.order_id and type=2) '1',
(select name from ag_acl_policyholder where order_id = f.order_id and type=2) '1',
o.policy_no '2',
o.policy_no '2',
i.name '3' /*保司*/,
i.name '3' /*保司*/,
...
...
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