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
3d2a9787
Commit
3d2a9787
authored
Apr 28, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分公司和营业部分开
parent
cc6264fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
yd-api/src/main/resources/mapper/agms/AgmsDashboardMapper.xml
+3
-2
No files found.
yd-api/src/main/resources/mapper/agms/AgmsDashboardMapper.xml
View file @
3d2a9787
...
@@ -69,8 +69,8 @@
...
@@ -69,8 +69,8 @@
</select>
</select>
<select
id=
"statisticsOpportunity"
resultType=
"com.yd.dal.entity.agms.dashboard.StatisticsOpportunityInfo"
>
<select
id=
"statisticsOpportunity"
resultType=
"com.yd.dal.entity.agms.dashboard.StatisticsOpportunityInfo"
>
select
if(b.branch_name is null,'暂无公司
',b.branch_name) branchName,
select
if(b.branch_name is null,'
',b.branch_name) branchName,
if(s.name is null ,'暂无团队
',s.name) subordinateName,
if(s.name is null ,'
',s.name) subordinateName,
<choose>
<choose>
<when
test=
"time.equalsIgnoreCase('D')"
>
<when
test=
"time.equalsIgnoreCase('D')"
>
sum(case when to_days(a.created_at)=to_days(now()) then 1 else 0 end) opportunityNum,
sum(case when to_days(a.created_at)=to_days(now()) then 1 else 0 end) opportunityNum,
...
@@ -118,6 +118,7 @@
...
@@ -118,6 +118,7 @@
and a.id = tt.leads_assigned_id)
and a.id = tt.leads_assigned_id)
<choose>
<choose>
<when
test=
"type.equalsIgnoreCase('B')"
>
<when
test=
"type.equalsIgnoreCase('B')"
>
and p.insurer_branch_id is not null
group by p.insurer_branch_id
group by p.insurer_branch_id
</when>
</when>
<when
test=
"type.equalsIgnoreCase('T')"
>
<when
test=
"type.equalsIgnoreCase('T')"
>
...
...
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