|
|
|
@ -35,8 +35,8 @@ public class IndividualMemberServiceImpl implements IIndividualMemberService { |
|
|
|
|
// private String docxPath="/Users/liangjiawei/Downloads/worddocx/file/";
|
|
|
|
|
// private String path = "/Users/liangjiawei/Downloads";
|
|
|
|
|
private static String path = "/upload/file"; |
|
|
|
|
private String rootPath = "/upload/file/upload/worddocx/"; |
|
|
|
|
private String docxPath = "/upload/file/upload/worddocx/file/"; |
|
|
|
|
private String rootPath = "/data/docker/sh_toilet/feiyi/upload/file/upload/worddocx/"; |
|
|
|
|
private String docxPath = "/data/docker/sh_toilet/feiyi/upload/file/upload/worddocx/file/"; |
|
|
|
|
@Autowired |
|
|
|
|
private IndividualMemberMapper individualMemberMapper; |
|
|
|
|
|
|
|
|
@ -288,7 +288,7 @@ public class IndividualMemberServiceImpl implements IIndividualMemberService { |
|
|
|
|
public String personalExport(Long[] ids) throws IOException { |
|
|
|
|
List<String> fileList = individualMemberMapper.getPersonalExport(ids); |
|
|
|
|
List<String> updatedFileList = fileList.stream() |
|
|
|
|
.map(item -> "/upload/file/upload" + item) |
|
|
|
|
.map(item -> "/data/docker/sh_toilet/feiyi/upload/file/upload" + item) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
try { |
|
|
|
|
ZipFilesUtils.compressFiles(updatedFileList, docxPath + "zip/个人会员.zip"); |
|
|
|
@ -302,11 +302,12 @@ public class IndividualMemberServiceImpl implements IIndividualMemberService { |
|
|
|
|
public String personalAllExport() throws IOException { |
|
|
|
|
List<String> fileList = individualMemberMapper.personalAllExport(); |
|
|
|
|
List<String> updatedFileList = fileList.stream() |
|
|
|
|
.map(item -> "/upload/file/upload" + item) |
|
|
|
|
.map(item -> "/data/docker/sh_toilet/feiyi/upload/file/upload" + item) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
try { |
|
|
|
|
ZipFilesUtils.compressFiles(updatedFileList, docxPath + "zip/个人会员.zip"); |
|
|
|
|
return "/worddocx/file/zip/" + "个人会员.zip"; |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
return "导出失败"; |
|
|
|
|
} |
|
|
|
|