fix导出
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user