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
8ff0c6e6
Commit
8ff0c6e6
authored
Jul 20, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充提交-AGMS的Dashboard中PEP查询
parent
dd567362
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
yd-api/src/main/java/com/yd/dal/service/agms/impl/AgmsDashboardDALServiceImpl.java
+4
-2
yd-api/src/main/resources/mapper/agms/AgmsDashboardMapper.xml
+6
-0
No files found.
yd-api/src/main/java/com/yd/dal/service/agms/impl/AgmsDashboardDALServiceImpl.java
View file @
8ff0c6e6
...
...
@@ -35,8 +35,10 @@ public class AgmsDashboardDALServiceImpl implements AgmsDashboardDALService {
practitionerNum
=
practitionerNumMap
.
get
(
statisticsPEPInfo
.
getBranchId
());
statisticsPEPInfo
.
setPractitionerNum
(
practitionerNum
);
}
else
if
(
type
.
equalsIgnoreCase
(
"T"
)){
Long
subordinateId
=
statisticsPEPInfo
.
getSubordinateId
();
practitionerNum
=
practitionerNumMap
.
get
(
subordinateId
);
practitionerNum
=
practitionerNumMap
.
get
(
statisticsPEPInfo
.
getSubordinateId
());
statisticsPEPInfo
.
setPractitionerNum
(
practitionerNum
);
}
else
{
practitionerNum
=
practitionerNumMap
.
get
(
0L
);
statisticsPEPInfo
.
setPractitionerNum
(
practitionerNum
);
}
Double
scoreDay
=
BigDecimal
.
valueOf
(
statisticsPEPInfo
.
getScoreDay
())
...
...
yd-api/src/main/resources/mapper/agms/AgmsDashboardMapper.xml
View file @
8ff0c6e6
...
...
@@ -21,6 +21,7 @@ select if(b.branch_name is null,'暂无公司',b.branch_name) branchName,
left join ag_acl_practitioner_subordinate_system s on s.id = p.subordinate_system_id
left join ag_acl_practitioner_setting ps on ps.practitioner_id = p.id
where ps.practitioner_type_id = 28
and p.is_active = 1
and not EXISTS(
select tt.leads_assigned_id
from ag_mkt_leads_assigned_track tt
...
...
@@ -79,6 +80,7 @@ from ag_acl_practitioner p
left join ag_acl_practitioner_setting ps on ps.practitioner_id = p.id
where
ps.practitioner_type_id = 28
and p.is_active = 1
and not EXISTS(
select tt.leads_assigned_id
from ag_mkt_leads_assigned_track tt
...
...
@@ -103,11 +105,15 @@ select
<when
test=
"type.equalsIgnoreCase('T')"
>
if(p.subordinate_system_id is null,0,p.subordinate_system_id) id,
</when>
<otherwise>
0 id,
</otherwise>
</choose>
count(p.id) practitionerNum
from ag_acl_practitioner p
left join ag_acl_practitioner_setting ps on ps.practitioner_id = p.id
where ps.practitioner_type_id = 28
and p.is_active = 1
<choose>
<when
test=
"type.equalsIgnoreCase('B')"
>
group by p.insurer_branch_id
...
...
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