|
|
@@ -1691,20 +1691,23 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
@Override
|
|
|
public void exportSuperviseSettlementExcel(Page page, SettlementQueryVo settlementQueryVo) {
|
|
|
Page<ExportSuperviseSettlementExcelDto> exportSuperviseSettlementExcelDtos = baseMapper.superviseSettlementExcelDtos(page, settlementQueryVo);
|
|
|
- exportSuperviseSettlementExcelDtos.getRecords().forEach(dto -> {
|
|
|
- if ("1".equals(dto.getInvoiceParty())) {
|
|
|
- dto.setInvoiceParty("我方开票");
|
|
|
- } else if ("2".equals(dto.getInvoiceParty())) {
|
|
|
- dto.setInvoiceParty("保司开票");
|
|
|
- }
|
|
|
- dto.setInvoiceType(Objects.toString(dto.getInvoiceType(),""));
|
|
|
- switch (dto.getInvoiceType()) {
|
|
|
- case "1" -> dto.setInvoiceType("手续费");
|
|
|
- case "2" -> dto.setInvoiceType("跟单费");
|
|
|
- case "3" -> dto.setInvoiceType("驾意险手续费");
|
|
|
- case "4" -> dto.setInvoiceType("驾意险跟单费");
|
|
|
- }
|
|
|
- });
|
|
|
+ // 补充、转换列表的数据
|
|
|
+ supplementaryListData(exportSuperviseSettlementExcelDtos);
|
|
|
+ List<ExportSuperviseSettlementExcelDto> list = exportSuperviseSettlementExcelDtos.getRecords();
|
|
|
+ EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ExportSuperviseSettlementExcelDto.class, list, "车险手续费结算明细");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导出平台结算记录excel文件
|
|
|
+ *
|
|
|
+ * @param settlementQueryVo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void exportPlatformSettlementExcel(Page page, SettlementQueryVo settlementQueryVo) {
|
|
|
+ Page<ExportSuperviseSettlementExcelDto> exportSuperviseSettlementExcelDtos = baseMapper.platformSettlementExcelDtos(page, settlementQueryVo);
|
|
|
+ // 补充、转换列表的数据
|
|
|
+ supplementaryListData(exportSuperviseSettlementExcelDtos);
|
|
|
List<ExportSuperviseSettlementExcelDto> list = exportSuperviseSettlementExcelDtos.getRecords();
|
|
|
EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ExportSuperviseSettlementExcelDto.class, list, "车险手续费结算明细");
|
|
|
}
|