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
08badf5d
Commit
08badf5d
authored
Jun 20, 2022
by
wenyang
Committed by
jianan
Jul 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渠道规则开发4(渠道查询条件优化,支持对公对私)
parent
094ba2bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+5
-3
No files found.
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
08badf5d
...
...
@@ -60,7 +60,8 @@
LEFT JOIN ag_md_drop_master mas ON mas.id = op.drop_master_id
LEFT JOIN ag_md_drop_options op1 ON op1.id = setting.practitioner_level
LEFT JOIN ag_md_drop_master mas1 ON mas1.id = op1.drop_master_id
LEFT JOIN ag_acl_channel_new cha ON cha.customer_id = t.customer_id
<!-- LEFT JOIN ag_acl_channel_new cha ON cha.customer_id = t.customer_id -->
LEFT JOIN ag_acl_channel_new cha ON cha.id = t.channel_id
LEFT JOIN (select distinct poc.order_id,poc.commission_period,c.* FROM ag_po_order_commission poc,ag_po_order_commission_check c
WHERE poc.commission_check_id=c.id AND poc.commission_status='2' AND poc.commission_type='1'
<if
test=
"item.commissionPayoutYearmonth == null"
>
...
...
@@ -149,7 +150,8 @@
LEFT JOIN ag_md_drop_master mas ON mas.id = op.drop_master_id
LEFT JOIN ag_md_drop_options op1 ON op1.id = setting.practitioner_level
LEFT JOIN ag_md_drop_master mas1 ON mas1.id = op1.drop_master_id
LEFT JOIN ag_acl_channel_new cha ON cha.customer_id = t.customer_id
<!-- LEFT JOIN ag_acl_channel_new cha ON cha.customer_id = t.customer_id -->
LEFT JOIN ag_acl_channel_new cha ON cha.id = t.channel_id
WHERE ((t.settlement_type='2' and mas1.scenario_code='practitioner_level' and setting.practitioner_type_id=28) or t.settlement_type='3')
AND mas.drop_code = 'Fortune_Payout_Status'
<if
test=
"item.insurerBranchId != null"
>
...
...
@@ -307,7 +309,7 @@
left join ag_acl_practitioner_setting setting on pra.id = setting.practitioner_id
left join ag_md_drop_options opt on opt.id = setting.practitioner_level
left join ag_acl_life_practitioner_salary salary on salary.practitioner_id=pra.id and salary.`year_month`=REPLACE (pb.payout_yearmonth, '-', '')
left join ag_acl_channel_new cha ON cha.
customer_id = f.customer
_id
left join ag_acl_channel_new cha ON cha.
id = f.channel
_id
where
(setting.practitioner_type_id=28 or f.settlement_type='3')
<if
test=
"item.channelId != null"
>
...
...
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