|
@@ -133,18 +133,18 @@ public class AgentNewLogServiceImpl extends ServiceImpl<IAgentNewLogMapper, Agen
|
|
List<LogListVo> list = (List<LogListVo>) this.pageUnList(logListParam).getList();
|
|
List<LogListVo> list = (List<LogListVo>) this.pageUnList(logListParam).getList();
|
|
ExcelWriter excelWriter = null;
|
|
ExcelWriter excelWriter = null;
|
|
try {
|
|
try {
|
|
- Class clz = LogListVo.class;
|
|
|
|
- String name = "经销商结算统计";
|
|
|
|
if("en".equals(lang)){
|
|
if("en".equals(lang)){
|
|
- clz = LogListVoEn.class;
|
|
|
|
- name = "Sales Statistics List";
|
|
|
|
- List<LogListVoEn> listen = (List<LogListVoEn>) this.pageUnList(logListParam).getList();
|
|
|
|
-
|
|
|
|
- excelWriter = EasyExcel.write(resp.getOutputStream(), clz).build();
|
|
|
|
- excelService.commonExport(req,resp,name,listen,excelWriter);
|
|
|
|
|
|
+ List<LogListVoEn> listen = new ArrayList<>();
|
|
|
|
+ for (LogListVo listVo : list) {
|
|
|
|
+ LogListVoEn en = new LogListVoEn();
|
|
|
|
+ BeanUtils.copyProperties(listVo,en);
|
|
|
|
+ listen.add(en);
|
|
|
|
+ }
|
|
|
|
+ excelWriter = EasyExcel.write(resp.getOutputStream(), LogListVoEn.class).build();
|
|
|
|
+ excelService.commonExport(req,resp,"Sales Statistics List",listen,excelWriter);
|
|
}else {
|
|
}else {
|
|
- excelWriter = EasyExcel.write(resp.getOutputStream(), clz).build();
|
|
|
|
- excelService.commonExport(req,resp,name,list,excelWriter);
|
|
|
|
|
|
+ excelWriter = EasyExcel.write(resp.getOutputStream(), LogListVo.class).build();
|
|
|
|
+ excelService.commonExport(req,resp,"经销商结算统计",list,excelWriter);
|
|
}
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|