|
|
@ -852,6 +852,7 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
|
|
|
|
|
|
// 添加铁粉用户翻译支持 |
|
|
// 添加铁粉用户翻译支持 |
|
|
if ("fanUser".equals(exportType) && list.get(0) instanceof BeanConsumeFan) { |
|
|
if ("fanUser".equals(exportType) && list.get(0) instanceof BeanConsumeFan) { |
|
|
|
|
|
fillUserMemberStatusDescriptions((List<BeanConsumeFan>) list); |
|
|
translateBeanConsumeFanList((List<BeanConsumeFan>) list, lang); |
|
|
translateBeanConsumeFanList((List<BeanConsumeFan>) list, lang); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1056,6 +1057,31 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
* 填充用户会员的状态描述 |
|
|
|
|
|
*/ |
|
|
|
|
|
private void fillUserMemberStatusDescriptions(List<BeanConsumeFan> fans) { |
|
|
|
|
|
if (fans != null && !fans.isEmpty()) { |
|
|
|
|
|
for (BeanConsumeFan fan : fans) { |
|
|
|
|
|
if (fan.getType() != null) { |
|
|
|
|
|
fan.setTypeDesc(fanTypeToString(fan.getType())); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 将会员类型数字转换为中文描述 |
|
|
|
|
|
*/ |
|
|
|
|
|
private String fanTypeToString(Integer type) { |
|
|
|
|
|
if (type == null) return ""; |
|
|
|
|
|
switch (type) { |
|
|
|
|
|
case 7: return "单次付费"; |
|
|
|
|
|
case 8: return "连续包月"; |
|
|
|
|
|
default: return "其他"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
* 填充用户数据的状态描述 |
|
|
* 填充用户数据的状态描述 |
|
|
*/ |
|
|
*/ |
|
|
private void fillUserStatusDescriptions(List<FundsDTO> funds) { |
|
|
private void fillUserStatusDescriptions(List<FundsDTO> funds) { |
|
|
@ -1067,6 +1093,7 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 将类型数字转换为中文描述 |
|
|
* 将类型数字转换为中文描述 |
|
|
*/ |
|
|
*/ |
|
|
@ -1205,8 +1232,8 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
private String convertIsBackpackGiftToString(Integer isBackpackGift) { |
|
|
private String convertIsBackpackGiftToString(Integer isBackpackGift) { |
|
|
if (isBackpackGift == null) return ""; |
|
|
if (isBackpackGift == null) return ""; |
|
|
switch (isBackpackGift) { |
|
|
switch (isBackpackGift) { |
|
|
case 0: return "否"; |
|
|
|
|
|
case 1: return "是"; |
|
|
|
|
|
|
|
|
case 0: return "是"; |
|
|
|
|
|
case 1: return "否"; |
|
|
default: return "未知"; |
|
|
default: return "未知"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -1224,6 +1251,7 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 将充值平台数字转换为中文描述 |
|
|
* 将充值平台数字转换为中文描述 |
|
|
*/ |
|
|
*/ |
|
|
@ -1448,8 +1476,8 @@ public class ExportExcelServiceImpl implements ExportExcelService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 翻译会员类型 |
|
|
// 翻译会员类型 |
|
|
if (item.getType() != null && !item.getType().isEmpty()) { |
|
|
|
|
|
item.setType(languageTranslationUtil.translate(item.getType(), lang)); |
|
|
|
|
|
|
|
|
if (item.getTypeDesc() != null && !item.getTypeDesc().isEmpty()) { |
|
|
|
|
|
item.setTypeDesc(languageTranslationUtil.translate(item.getTypeDesc(), lang)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|