Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
VVAS-Match
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ca25ceb7
authored
Mar 03, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分数降序
1 parent
ce7fe5c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/service/PersonService.java
View file @
ca25ceb
...
@@ -212,7 +212,7 @@ public class PersonService {
...
@@ -212,7 +212,7 @@ public class PersonService {
matchBody
(
bodyFeatures
,
poolId
,
matchResult
);
matchBody
(
bodyFeatures
,
poolId
,
matchResult
);
}
}
Stream
<
Person
>
stream
=
matchResult
.
stream
().
sorted
(
Comparator
.
comparingInt
(
Person:
:
getScore
));
Stream
<
Person
>
stream
=
matchResult
.
stream
().
sorted
(
Comparator
.
comparingInt
(
Person:
:
getScore
)
.
reversed
()
);
if
(
matchResult
.
size
()
>
Constant
.
MATCH_RESULT_SIZE
)
{
if
(
matchResult
.
size
()
>
Constant
.
MATCH_RESULT_SIZE
)
{
stream
=
stream
.
limit
(
5
);
stream
=
stream
.
limit
(
5
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment