|
@ -1507,8 +1507,8 @@ public class DoorOrderService {
|
|
|
|
|
|
public File writeWordFile(List<String> orderId,HttpServletResponse response,String doctorCode) throws Exception {
|
|
public File writeWordFile(List<String> orderId,HttpServletResponse response,String doctorCode) throws Exception {
|
|
String zipFileName = "service_summary";
|
|
String zipFileName = "service_summary";
|
|
String exportConclusionList = doctorCode+"exportList";
|
|
|
|
String path = System.getProperty("user.dir") +"/service_summary/" + exportConclusionList;
|
|
|
|
|
|
String exportConclusionList = "exportList";
|
|
|
|
String path = System.getProperty("user.dir") +"/service_summary/"+doctorCode+"/" + exportConclusionList;
|
|
|
|
|
|
System.out.println("path :" +path);
|
|
System.out.println("path :" +path);
|
|
|
|
|
|
@ -1517,13 +1517,13 @@ public class DoorOrderService {
|
|
if (file.exists()) {
|
|
if (file.exists()) {
|
|
if (file != null){
|
|
if (file != null){
|
|
deleteFolder(file);
|
|
deleteFolder(file);
|
|
file.mkdir();
|
|
|
|
|
|
file.mkdirs();
|
|
}else {
|
|
}else {
|
|
file.delete();
|
|
file.delete();
|
|
file.mkdir();
|
|
|
|
|
|
file.mkdirs();
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
file.mkdir();
|
|
|
|
|
|
file.mkdirs();
|
|
}
|
|
}
|
|
int j =1;
|
|
int j =1;
|
|
for (int i = 0; i < orderId.size(); i++) {
|
|
for (int i = 0; i < orderId.size(); i++) {
|