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
0bf96232
Commit
0bf96232
authored
Apr 13, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard分公司统计1
parent
ddbfe8f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
yd-api/src/main/resources/mapper/agms/AgmsDashboardMapper.xml
+7
-2
No files found.
yd-api/src/main/resources/mapper/agms/AgmsDashboardMapper.xml
View file @
0bf96232
...
@@ -240,15 +240,20 @@
...
@@ -240,15 +240,20 @@
from ag_acl_practitioner p
from ag_acl_practitioner p
INNER JOIN ag_acl_life_insurance_practitioner lip ON lip.practitioner_id= p.id
INNER JOIN ag_acl_life_insurance_practitioner lip ON lip.practitioner_id= p.id
INNER JOIN ag_po_order o ON o.policy_no = lip.policy_no
INNER JOIN ag_po_order o ON o.policy_no = lip.policy_no
left join ag_product prd on prd.id = o.product_id
left join ag_product_category c1 on c1.id = prd.product_category_id
left join ag_product_plan a on o.plan_id = a.id
left join ag_product aa on aa.id = a.product_id
left join ag_product_category c2 on c2.id = aa.product_category_id
left join ag_acl_insurer_branch b on b.id = p.insurer_branch_id
left join ag_acl_insurer_branch b on b.id = p.insurer_branch_id
left join ag_acl_practitioner_subordinate_system s on s.id = p.subordinate_system_id
left join ag_acl_practitioner_subordinate_system s on s.id = p.subordinate_system_id
where o.status = 3 and o.payment_status=3
where o.status = 3 and o.payment_status=3
<choose>
<choose>
<when
test=
"category.equalsIgnoreCase('life')"
>
<when
test=
"category.equalsIgnoreCase('life')"
>
and
o.product_category_id in (2,5,8
)
and
(c1.id in (2,5,8) or c2.id in (2,5,8)
)
</when>
</when>
<when
test=
"category.equalsIgnoreCase('pc')"
>
<when
test=
"category.equalsIgnoreCase('pc')"
>
and
o.product_category_id not in (2,5,8
)
and
(c1.id not in (2,5,8) or c2.id not in (2,5,8)
)
</when>
</when>
</choose>
</choose>
<choose>
<choose>
...
...
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