| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Comparator; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | street.setCount(communityList.size()); |
| | | } |
| | | }); |
| | | // streetList = streetList.stream().sorted(Comparator.comparing(StreetAllAppletsVO::getCount).reversed()) |
| | | // .collect(Collectors.toList()); |
| | | streetList = streetList.stream().sorted(Comparator.comparing(StreetAllAppletsVO::getCount).reversed()) |
| | | .collect(Collectors.toList()); |
| | | return R.ok(streetList); |
| | | } |
| | | |