This commit is contained in:
shuo.wang
2025-06-05 15:57:10 +08:00
parent 0d389a9e89
commit dd07bca48d

View File

@@ -219,6 +219,7 @@ public class FranchiseReportServiceImpl implements FranchiseReportService {
log.info("查询门店数据为空");
return null;
}
PageInfo franchiseReportDTOPageInfo = new PageInfo<>(shopFranchiseReportList);
List<Long> shopIds = shopFranchiseReportList.stream().map(FranchiseReportDTO::getShopId).collect(Collectors.toList());
Set<Long> regionSet = shopFranchiseReportList.stream().map(FranchiseReportDTO::getRegionId).collect(Collectors.toSet());
Set<String> investmentManagerUsers = shopFranchiseReportList.stream().map(FranchiseReportDTO::getInvestmentManager).collect(Collectors.toSet());
@@ -271,7 +272,8 @@ public class FranchiseReportServiceImpl implements FranchiseReportService {
log.info("数据为空");
return null;
}
return new PageInfo<>(list.stream().sorted(Comparator.comparing(ShopReportResponse::getBuildTime).reversed()).collect(Collectors.toList()));
franchiseReportDTOPageInfo.setList(list.stream().sorted(Comparator.comparing(ShopReportResponse::getBuildTime).reversed()).collect(Collectors.toList()));
return franchiseReportDTOPageInfo;
}
public static void sortByName(List<FranchiseReportResponse> list) {