报表导出
This commit is contained in:
@@ -630,9 +630,29 @@ public class ExportRealizeServiceImpl implements ExportRealizeService {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Async
|
||||
public void exportZxjpOpenShopReport(List<FranchiseReportResponse> list, ImportTaskDO importTaskDO, FranchiseReportRequest request) {
|
||||
String url = "";
|
||||
try {
|
||||
FranchiseReportResponse total = new FranchiseReportResponse();
|
||||
total.setYesterdayDate(list.get(0).getYesterdayDate());
|
||||
total.setJoinGroupName("总计");
|
||||
for (FranchiseReportResponse response : list){
|
||||
response.setTotal(response.getFranchiseFeeTotal().add(response.getManagementBrandingDesignFeeTotal()).add(response.getLoanMarginTotal()));
|
||||
total.setTotal(total.getTotal().add(response.getTotal()));
|
||||
total.setStoreNum(total.getStoreNum() + response.getStoreNum());
|
||||
total.setNormalStoreNum(total.getNormalStoreNum() + response.getNormalStoreNum());
|
||||
total.setRestaurantStoreNum(total.getRestaurantStoreNum() + response.getRestaurantStoreNum());
|
||||
total.setNoShowStoreNum(total.getNoShowStoreNum() + response.getNoShowStoreNum());
|
||||
total.setFranchiseFeeTotal(total.getFranchiseFeeTotal().add(response.getFranchiseFeeTotal()));
|
||||
total.setFirstYearBrandingFeeTotal(total.getFirstYearBrandingFeeTotal().add(response.getFirstYearBrandingFeeTotal()));
|
||||
total.setFirstYearManagementFeeTotal(total.getFirstYearManagementFeeTotal().add(response.getFirstYearManagementFeeTotal()));
|
||||
total.setPerformanceBondTotal(total.getPerformanceBondTotal().add(response.getPerformanceBondTotal()));
|
||||
total.setManagementBrandingDesignFeeTotal(total.getManagementBrandingDesignFeeTotal().add(response.getManagementBrandingDesignFeeTotal()));
|
||||
total.setLoanMarginTotal(total.getLoanMarginTotal().add(response.getLoanMarginTotal()));
|
||||
total.setYesterdayStoreNum(total.getYesterdayStoreNum() + response.getYesterdayStoreNum());
|
||||
}
|
||||
list.add(total);
|
||||
url = easyExcelUtil.exportExcelSpecial(FranchiseReportResponse.class, list, null,
|
||||
FileTypeEnum.ZXJP_OPEN_SHOP_REPORT.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date()),
|
||||
FileTypeEnum.ZXJP_OPEN_SHOP_REPORT.getDesc() + DateUtils.parseDateToStr(SPECIAL_DATE_START_1, new Date()),
|
||||
|
||||
Reference in New Issue
Block a user