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
790c9812
Commit
790c9812
authored
Dec 30, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发佣检核22-来佣比对手工记录根据公司查询
parent
e557dbc5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
+4
-2
No files found.
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
View file @
790c9812
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
(case o.config_level when 2 then p2.pName2 else p3.pName3 END) categoryName,
(case o.config_level when 2 then p2.pName2 else p3.pName3 END) categoryName,
(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,
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,
...
@@ -101,7 +102,7 @@
...
@@ -101,7 +102,7 @@
) e on e.order_id = o.id
) e on e.order_id = o.id
where 1=1
where 1=1
<if
test=
"insurerId != null"
>
<if
test=
"insurerId != null"
>
and o.insurer
_i
d = #{insurerId}
and o.insurer
I
d = #{insurerId}
</if>
</if>
<if
test=
"insurerBranchId != null"
>
<if
test=
"insurerBranchId != null"
>
and p.insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT}
and p.insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT}
...
@@ -176,6 +177,7 @@
...
@@ -176,6 +177,7 @@
<sql
id=
"queryLifecommissionList"
>
<sql
id=
"queryLifecommissionList"
>
(SELECT o.*,
(SELECT o.*,
IFNULL(o.insurer_id,orderCommission.insurer_id) insurerId,
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,
...
@@ -224,7 +226,7 @@
...
@@ -224,7 +226,7 @@
) f on f.order_id = o.id
) f on f.order_id = o.id
where 1=1
where 1=1
<if
test=
"insurerId != null"
>
<if
test=
"insurerId != null"
>
and o.insurer
_i
d = #{insurerId}
and o.insurer
I
d = #{insurerId}
</if>
</if>
<if
test=
"insurerBranchId != null"
>
<if
test=
"insurerBranchId != null"
>
and p.insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT}
and p.insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT}
...
...
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