|
@ -1589,20 +1589,12 @@ public class DoorOrderService {
|
|
|
|
|
|
|
|
|
public File writeWordFile(List<String> orderId,HttpServletResponse response) throws Exception {
|
|
|
String zipFileName = "服务小结";
|
|
|
long time = System.currentTimeMillis();
|
|
|
String exportConclusionList = time+"exportList";
|
|
|
String path = this.getClass().getResource("/").getPath() + exportConclusionList;
|
|
|
String zipFileName = "service_summary";
|
|
|
String exportConclusionList = "exportList";
|
|
|
String path = System.getProperty("user.dir") +"/" + exportConclusionList;
|
|
|
|
|
|
System.out.println("path :" +path);
|
|
|
|
|
|
// String path1 = this.getClass().getResource("/").getPath() + exportConclusionList;
|
|
|
// String c2=path1.substring(0,path1.indexOf("!"));// !前面的
|
|
|
// String c1=path1.substring(path1.lastIndexOf("!")+1);// !後面的
|
|
|
// String cc = c2+c1;
|
|
|
// String path = cc.replace("svr-door-service.jar/","");
|
|
|
// System.out.println(path);
|
|
|
|
|
|
File file = new File(path);
|
|
|
// 删除文件夹、文件
|
|
|
if (file.exists()) {
|