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
02cac741
Commit
02cac741
authored
May 11, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人销售业绩是0的问题1
parent
99c03a68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+13
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
02cac741
...
...
@@ -297,6 +297,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
rankInfoList
=
this
.
sortByTypeAndGetElement
(
rankInfoList
,
type
,
practitionerBasicInfo
);
//按照指定类型排序
getPractitionerRankResult
(
responseVO
,
rankInfoList
,
type
,
practitionerBasicInfoMap
,
time
,
platform
,
practitionerTypeId
);
//过滤掉业绩是0的元素
removeZero
(
responseVO
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
}
...
...
@@ -310,6 +313,16 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
return
responseVO
;
}
private
void
removeZero
(
PractitionerRankResponseVO
responseVO
)
{
List
<
AclCustomerFortuneStatistics
>
rank
=
responseVO
.
getRank
();
// 过滤掉销售业绩是0的元素
List
<
AclCustomerFortuneStatistics
>
resultList
=
rank
.
stream
()
.
filter
((
AclCustomerFortuneStatistics
i
)
->
!
Integer
.
valueOf
(
"0"
).
equals
(
i
.
getCount
()))
.
collect
(
toList
());
responseVO
.
setRank
(
resultList
);
}
private
List
<
PractitionerRankInfo
>
sortByTypeAndGetElement
(
List
<
PractitionerRankInfo
>
rankInfoList
,
Integer
type
,
PractitionerBasicInfo
practitionerBasicInfo
)
{
String
name
=
practitionerBasicInfo
.
getName
();
...
...
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