|
@ -126,15 +126,15 @@ public class PointAditiveRecordServiceImpl extends BaseServiceImpl<PointAditiveR |
|
|
|
|
|
|
|
|
if(CollectionUtils.isNotEmpty(recordList)){ |
|
|
if(CollectionUtils.isNotEmpty(recordList)){ |
|
|
Map<String,List<PointAditiveRecordDailyDTO>> map = |
|
|
Map<String,List<PointAditiveRecordDailyDTO>> map = |
|
|
recordList.stream().collect(Collectors.groupingBy(PointAditiveRecordDailyDTO::getDateStr)); |
|
|
recordList.stream().collect(Collectors.groupingBy(PointAditiveRecordDailyDTO::getDate)); |
|
|
|
|
|
|
|
|
Map<String, List<PointAditiveRecordDailyDTO>> sortedMap = Maps.newLinkedHashMap(); |
|
|
Map<String, List<PointAditiveRecordDailyDTO>> sortedMap = Maps.newLinkedHashMap(); |
|
|
map.entrySet().stream().sorted(Map.Entry.<String, List<PointAditiveRecordDailyDTO>>comparingByKey().reversed()) |
|
|
map.entrySet().stream().sorted(Map.Entry.<String, List<PointAditiveRecordDailyDTO>>comparingByKey().reversed()) |
|
|
.forEachOrdered(e -> sortedMap.put(e.getKey(), e.getValue())); |
|
|
.forEachOrdered(e -> sortedMap.put(e.getKey(), e.getValue())); |
|
|
sortedMap.forEach((key, value) -> { |
|
|
sortedMap.forEach((key, value) -> { |
|
|
PointAditiveRecordResultDTO o = new PointAditiveRecordResultDTO(); |
|
|
PointAditiveRecordResultDTO o = new PointAditiveRecordResultDTO(); |
|
|
o.setDateStr(key); |
|
|
o.setDate(key); |
|
|
o.setRecordList(value); |
|
|
o.setDailyList(value); |
|
|
list.add(o); |
|
|
list.add(o); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|