|
|
@@ -5496,21 +5496,9 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
public void exportSuperviseSettlementDetailExcel(Page page, SettlementQueryVo settlementQueryVo) throws IOException {
|
|
|
verifyUploadPath();
|
|
|
settlementQueryVo.setSystemCode(baseController.getSystemCode());
|
|
|
- Page<ExportSuperviseSettlementDetailExcelDto> exportSuperviseSettlementDetailExcelDtos = baseMapper.getSuperviseSettlementDetailExcelDtos(page, settlementQueryVo);
|
|
|
- exportSuperviseSettlementDetailExcelDtos.getRecords().forEach(dto -> {
|
|
|
- if (dto.getInvoiceParty().equals("1")) {
|
|
|
- dto.setInvoiceParty("我方开票");
|
|
|
- } else if (dto.getInvoiceParty().equals("2")) {
|
|
|
- dto.setInvoiceParty("保司开票");
|
|
|
- }
|
|
|
- if (dto.getStatus().equals("1")) {
|
|
|
- dto.setStatus("已结算");
|
|
|
- } else if (dto.getStatus().equals("0")) {
|
|
|
- dto.setStatus("未结算");
|
|
|
- }
|
|
|
- });
|
|
|
- List<ExportSuperviseSettlementDetailExcelDto> list = exportSuperviseSettlementDetailExcelDtos.getRecords();
|
|
|
- EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ExportSuperviseSettlementDetailExcelDto.class, list, "车险手续费结算明细");
|
|
|
+ Page<ExportSuperviseSettlementDetailExcelDto> exportSuperviseSettlementDetailExcelDtoPage = this.superviseSettlementDetailExcel(page, settlementQueryVo);
|
|
|
+ List<ExportSuperviseSettlementDetailExcelDto> records = exportSuperviseSettlementDetailExcelDtoPage.getRecords();
|
|
|
+ EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ExportSuperviseSettlementDetailExcelDto.class, records, "车险手续费结算明细");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -5523,21 +5511,9 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
public void exportSuperviseSettlementDetailJyExcel(Page page, SettlementQueryVo settlementQueryVo) throws IOException {
|
|
|
verifyUploadPath();
|
|
|
settlementQueryVo.setSystemCode(baseController.getSystemCode());
|
|
|
- Page<ExportSuperviseSettlementDetailJyExcelDto> exportSuperviseSettlementDetailJyExcelDtos = baseMapper.getSuperviseSettlementDetailJyExcelDtos(page, settlementQueryVo);
|
|
|
- exportSuperviseSettlementDetailJyExcelDtos.getRecords().forEach(dto -> {
|
|
|
- if (dto.getInvoiceParty().equals("1")) {
|
|
|
- dto.setInvoiceParty("我方开票");
|
|
|
- } else if (dto.getInvoiceParty().equals("2")) {
|
|
|
- dto.setInvoiceParty("保司开票");
|
|
|
- }
|
|
|
- if (dto.getStatus().equals("1")) {
|
|
|
- dto.setStatus("已结算");
|
|
|
- } else if (dto.getStatus().equals("0")) {
|
|
|
- dto.setStatus("未结算");
|
|
|
- }
|
|
|
- });
|
|
|
- List<ExportSuperviseSettlementDetailJyExcelDto> list = exportSuperviseSettlementDetailJyExcelDtos.getRecords();
|
|
|
- EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ExportSuperviseSettlementDetailJyExcelDto.class, list, "车险手续费结算明细(非车)");
|
|
|
+ Page<ExportSuperviseSettlementDetailExcelDto> exportSuperviseSettlementDetailExcelDtoPage = this.superviseSettlementDetailExcel(page, settlementQueryVo);
|
|
|
+ List<ExportSuperviseSettlementDetailExcelDto> records = exportSuperviseSettlementDetailExcelDtoPage.getRecords();
|
|
|
+ EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ExportSuperviseSettlementDetailExcelDto.class, records, "车险手续费结算明细(非车)");
|
|
|
}
|
|
|
|
|
|
/**
|