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
9ddb7538
Commit
9ddb7538
authored
Jan 12, 2022
by
wenyang
Committed by
jianan
Jan 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【线上来佣比对】
查询列表增加保险公司的“分公司”2
parent
8ff776e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
+7
-5
No files found.
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
View file @
9ddb7538
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
(case o.config_level when 2 then p2.cName2 else p3.cName3 END) planCategoryName
(case o.config_level when 2 then p2.cName2 else p3.cName3 END) planCategoryName
from (SELECT o.*,
from (SELECT o.*,
IFNULL(o.insurer_id,orderCommission.insurer_id) insurerId,
IFNULL(o.insurer_id,orderCommission.insurer_id) insurerId,
orderCommission.insurer_branch_id insurerBranchId,
policyNo, commission_no, amount, commission_time, rate, commission_check_id, commissionId,
policyNo, commission_no, amount, commission_time, rate, commission_check_id, commissionId,
commission_year commissionYear,
commission_year commissionYear,
commission_status commissionCheckStatus,
commission_status commissionCheckStatus,
...
@@ -56,7 +57,7 @@
...
@@ -56,7 +57,7 @@
RIGHT JOIN
RIGHT JOIN
(SELECT id commissionId, policy_no policyNo, commission_no, commission_year, amount, commission_status, commission_time, commission_check_id,
(SELECT id commissionId, policy_no policyNo, commission_no, commission_year, amount, commission_status, commission_time, commission_check_id,
t.commission_type, t.commission_item, insurer_id,
t.commission_type, t.commission_item, insurer_id,
commission_period, rate, order_id, commission_category
commission_period, rate, order_id, commission_category
,t.insurer_branch_id
from ag_po_order_commission t
from ag_po_order_commission t
) orderCommission
) orderCommission
ON o.id = orderCommission.order_id
ON o.id = orderCommission.order_id
...
@@ -74,7 +75,7 @@
...
@@ -74,7 +75,7 @@
left join ag_po_order_commission_check c on o.commission_check_id = c.id
left join ag_po_order_commission_check c on o.commission_check_id = c.id
left join ag_product_plan a on o.plan_id = a.id
left join ag_product_plan a on o.plan_id = a.id
left join ag_product p on o.product_id = p.id
left join ag_product p on o.product_id = p.id
left join ag_acl_insurer_branch b on
p.insurer_branch_i
d = b.id
left join ag_acl_insurer_branch b on
o.insurerBranchI
d = b.id
left join (select plcl.config_level, plcl.product_id, plc.name cName2, pc.name pName2
left join (select plcl.config_level, plcl.product_id, plc.name cName2, pc.name pName2
from ag_plan_category_list plcl
from ag_plan_category_list plcl
left join ag_plan_category plc on plcl.plan_category_id = plc.id
left join ag_plan_category plc on plcl.plan_category_id = plc.id
...
@@ -111,7 +112,7 @@
...
@@ -111,7 +112,7 @@
and o.insurerId = #{insurerId}
and o.insurerId = #{insurerId}
</if>
</if>
<if
test=
"insurerBranchId != null"
>
<if
test=
"insurerBranchId != null"
>
and
p.insurer_branch_i
d = #{insurerBranchId,jdbcType=BIGINT}
and
o.insurerBranchI
d = #{insurerBranchId,jdbcType=BIGINT}
</if>
</if>
<if
test=
"practitionerTypeId != null"
>
<if
test=
"practitionerTypeId != null"
>
and f.practitioner_type_id = #{practitionerTypeId}
and f.practitioner_type_id = #{practitionerTypeId}
...
@@ -185,6 +186,7 @@
...
@@ -185,6 +186,7 @@
(SELECT o.*,
(SELECT o.*,
IFNULL(o.insurer_id,orderCommission.insurer_id) insurerId,
IFNULL(o.insurer_id,orderCommission.insurer_id) insurerId,
orderCommission.insurer_branch_id insurerBranchId,
policyNo, commission_no, amount, commission_time, rate, commission_check_id,
policyNo, commission_no, amount, commission_time, rate, commission_check_id,
commission_year commissionYear,
commission_year commissionYear,
commission_status commissionCheckStatus,
commission_status commissionCheckStatus,
...
@@ -206,7 +208,7 @@
...
@@ -206,7 +208,7 @@
RIGHT JOIN
RIGHT JOIN
(SELECT policy_no policyNo, commission_no, commission_year, amount, commission_status, commission_time, rate, commission_check_id,
(SELECT policy_no policyNo, commission_no, commission_year, amount, commission_status, commission_time, rate, commission_check_id,
t.commission_type,t.commission_item, insurer_id,
t.commission_type,t.commission_item, insurer_id,
commission_period, order_id, commission_category
commission_period, order_id, commission_category
,insurer_branch_id
from ag_po_order_commission t
from ag_po_order_commission t
) orderCommission
) orderCommission
ON o.id = orderCommission.order_id
ON o.id = orderCommission.order_id
...
@@ -239,7 +241,7 @@
...
@@ -239,7 +241,7 @@
and o.insurerId = #{insurerId}
and o.insurerId = #{insurerId}
</if>
</if>
<if
test=
"insurerBranchId != null"
>
<if
test=
"insurerBranchId != null"
>
and
p.insurer_branch_i
d = #{insurerBranchId,jdbcType=BIGINT}
and
o.insurerBranchI
d = #{insurerBranchId,jdbcType=BIGINT}
</if>
</if>
<if
test=
"practitionerTypeId != null"
>
<if
test=
"practitionerTypeId != null"
>
and f.practitioner_type_id = #{practitionerTypeId}
and f.practitioner_type_id = #{practitionerTypeId}
...
...
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