Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
V
volunteer_service
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
volunteer_service
Commits
8efb3bcf
Commit
8efb3bcf
authored
Jun 26, 2021
by
cy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方案查询修改(补录查询分组排序)
parent
32459924
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
SchemeServiceImpl.java
...java/cn/wisenergy/service/app/impl/SchemeServiceImpl.java
+5
-4
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/SchemeServiceImpl.java
View file @
8efb3bcf
...
...
@@ -1110,10 +1110,11 @@ public class SchemeServiceImpl extends ServiceImpl<SchemeMapper, SchemeInfo> imp
List
<
Volunteer
>
resultList
=
new
ArrayList
<>();
List
<
Volunteer
>
otherList
=
new
ArrayList
<>();
List
<
Volunteer
>
endList
=
new
ArrayList
<>();
Map
<
Double
,
List
<
Volunteer
>>
mapObj
=
fillList
.
stream
().
collect
(
Collectors
.
groupingBy
(
Volunteer:
:
getLowestMark
));
for
(
Map
.
Entry
<
Double
,
List
<
Volunteer
>>
entry
:
mapObj
.
entrySet
())
{
TreeMap
<
Double
,
List
<
Volunteer
>>
mapObj
=
fillList
.
stream
().
collect
(
Collectors
.
groupingBy
(
Volunteer:
:
getLowestMark
,
TreeMap:
:
new
,
Collectors
.
toList
()));
// Map<Double, List<Volunteer>> matchsListMap = fillList.stream().collect(Collectors.groupingBy(Volunteer::getLowestMark,LinkedHashMap::new,Collectors.toList()));
NavigableMap
<
Double
,
List
<
Volunteer
>>
obj
=
mapObj
.
descendingMap
();
for
(
Map
.
Entry
<
Double
,
List
<
Volunteer
>>
entry
:
obj
.
entrySet
())
{
List
<
Volunteer
>
volunteers
=
entry
.
getValue
();
if
(
volunteers
.
size
()
>
2
)
{
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
...
...
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