|
|
|
@ -875,6 +875,7 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
|
|
|
|
|
// 添加财务退款翻译支持 |
|
|
|
if ("financeUser".equals(exportType) && list.get(0) instanceof CashRecordDTO) { |
|
|
|
fillRechargeUserIsRefund((List<CashRecordDTO>) list); |
|
|
|
translateCashRecordDTOList((List<CashRecordDTO>) list, lang); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1133,6 +1134,20 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 填充财务退款用户数据的退款方式描述 |
|
|
|
*/ |
|
|
|
private void fillRechargeUserIsRefund(List<CashRecordDTO> cashRecords) { |
|
|
|
if (cashRecords != null && !cashRecords.isEmpty()) { |
|
|
|
for (CashRecordDTO cashRecord : cashRecords) { |
|
|
|
if (cashRecord.getRefundModel() != null) { |
|
|
|
String modelDesc = convertRefundModelToString(cashRecord.getRefundModel()); |
|
|
|
cashRecord.setRefundModelDesc(modelDesc); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 填充退款用户数据的退款方式描述 |
|
|
|
*/ |
|
|
|
private void fillRefundUserModelDescriptions(List<RefundUser> refundUsers) { |
|
|
|
@ -1583,6 +1598,11 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
|
if (item.getRefundRemark() != null && !item.getRefundRemark().isEmpty()) { |
|
|
|
item.setRefundRemark(languageTranslationUtil.translate(item.getRefundRemark(), lang)); |
|
|
|
} |
|
|
|
|
|
|
|
// 翻译退款方式 |
|
|
|
if (item.getRefundModelDesc() != null && !item.getRefundModelDesc().isEmpty()) { |
|
|
|
item.setRefundModelDesc(languageTranslationUtil.translate(item.getRefundModelDesc(), lang)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|