fix导出

This commit is contained in:
shuo.wang
2025-06-09 16:19:11 +08:00
parent aa789e1e93
commit f9c79eaf0c

View File

@@ -673,6 +673,18 @@ public class ExportRealizeServiceImpl implements ExportRealizeService {
public void exportZxjpOpenShopReportPage(List<ShopReportResponse> list, ImportTaskDO importTaskDO, FranchiseReportRequest request) {
String url = "";
try {
ShopReportResponse total = new ShopReportResponse();
total.setJoinGroupName("总计");
for (ShopReportResponse response : list){
total.setTotal(total.getTotal().add(response.getTotal()));
total.setFranchiseFee(total.getFranchiseFee().add(response.getFranchiseFee()));
total.setFirstYearBrandingFee(total.getFirstYearBrandingFee().add(response.getFirstYearBrandingFee()));
total.setFirstYearManagementFee(total.getFirstYearManagementFee().add(response.getFirstYearManagementFee()));
total.setPerformanceBond(total.getPerformanceBond().add(response.getPerformanceBond()));
total.setManagementBrandingDesignFeeTotal(total.getManagementBrandingDesignFeeTotal().add(response.getManagementBrandingDesignFeeTotal()));
total.setLoanMargin(total.getLoanMargin().add(response.getLoanMargin()));
}
list.add(total);
url = easyExcelUtil.exportExcelSpecial(ShopReportResponse.class, list, null,
FileTypeEnum.SELLING_DETAILS_REPORT.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date()),
FileTypeEnum.SELLING_DETAILS_REPORT.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date()),