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
ed29438d
Commit
ed29438d
authored
Jun 08, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
龙虎榜本人数据重复
parent
cb02fd50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+8
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
ed29438d
...
@@ -315,6 +315,14 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -315,6 +315,14 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
private
void
removeZero
(
PractitionerRankResponseVO
responseVO
)
{
private
void
removeZero
(
PractitionerRankResponseVO
responseVO
)
{
List
<
AclCustomerFortuneStatistics
>
rank
=
responseVO
.
getRank
();
List
<
AclCustomerFortuneStatistics
>
rank
=
responseVO
.
getRank
();
List
<
String
>
stringList
=
rank
.
stream
().
map
(
AclCustomerFortuneStatistics:
:
getName
)
.
collect
(
Collectors
.
toList
());
long
count
=
stringList
.
stream
().
distinct
().
count
();
if
(
stringList
.
size
()
!=
count
)
{
System
.
out
.
println
(
"有重复元素"
);
// 有重复元素
rank
.
remove
(
rank
.
size
()
-
1
);
}
// 过滤掉销售业绩是0的元素
// 过滤掉销售业绩是0的元素
List
<
AclCustomerFortuneStatistics
>
resultList
=
rank
.
stream
()
List
<
AclCustomerFortuneStatistics
>
resultList
=
rank
.
stream
()
.
filter
((
AclCustomerFortuneStatistics
i
)
->
!
Integer
.
valueOf
(
"0"
).
equals
(
i
.
getCount
()))
.
filter
((
AclCustomerFortuneStatistics
i
)
->
!
Integer
.
valueOf
(
"0"
).
equals
(
i
.
getCount
()))
...
...
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