Commit 8efb3bcf authored by cy's avatar cy

方案查询修改(补录查询分组排序)

parent 32459924
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment