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
6bbf8afb
Commit
6bbf8afb
authored
Apr 29, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
YDlife-【龙虎榜】-若经纪人销售业绩是0 ,则不显示在排名榜中
parent
024049dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+6
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
6bbf8afb
...
@@ -322,6 +322,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -322,6 +322,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
info
.
setPractitionerId
(
practitionerBasicInfo
.
getPractitionerId
());
info
.
setPractitionerId
(
practitionerBasicInfo
.
getPractitionerId
());
}
}
// 过滤掉销售业绩是0的元素
rankInfoList
=
rankInfoList
.
stream
()
.
filter
((
PractitionerRankInfo
i
)
->
!
Integer
.
valueOf
(
"0"
).
equals
(
i
.
getCount
()))
.
collect
(
Collectors
.
toList
());
// 排序---1-保费,2-佣金,3-件数
// 排序---1-保费,2-佣金,3-件数
if
(
2
==
type
)
{
if
(
2
==
type
)
{
rankInfoList
.
sort
(
Comparator
.
comparingDouble
(
PractitionerRankInfo:
:
getFyc
).
reversed
());
rankInfoList
.
sort
(
Comparator
.
comparingDouble
(
PractitionerRankInfo:
:
getFyc
).
reversed
());
...
@@ -330,6 +335,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -330,6 +335,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
else
{
}
else
{
rankInfoList
.
sort
(
Comparator
.
comparingDouble
(
PractitionerRankInfo:
:
getFyp
).
reversed
());
rankInfoList
.
sort
(
Comparator
.
comparingDouble
(
PractitionerRankInfo:
:
getFyp
).
reversed
());
}
}
// 集合元素过多,只获取排序后的前10个元素
// 集合元素过多,只获取排序后的前10个元素
List
<
PractitionerRankInfo
>
subList
=
rankInfoList
;
List
<
PractitionerRankInfo
>
subList
=
rankInfoList
;
if
(
rankInfoList
!=
null
&&
rankInfoList
.
size
()
>
10
)
{
if
(
rankInfoList
!=
null
&&
rankInfoList
.
size
()
>
10
)
{
...
...
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