|
@@ -219,7 +219,8 @@ public class InformationController extends BaseController {
|
|
|
}
|
|
|
List<Information> listBy = informationService.findListBy(infor);
|
|
|
try {
|
|
|
- File temp =new File("C:\\Users\\lem\\AppData\\Local\\Temp\\information");
|
|
|
+ File path = new File(this.getClass().getResource("/").getPath()+"/freemarker");
|
|
|
+ File temp =new File(path+"\\information");
|
|
|
/**
|
|
|
* 在临时文件中写入内容
|
|
|
*/
|
|
@@ -583,7 +584,7 @@ public class InformationController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
data.put("mb",stringBuilder);
|
|
|
- File docFile = new File("D:/甲供物资超欠供说明.doc");
|
|
|
+ File docFile = new File(path+"\\甲供物资超欠供说明.doc");
|
|
|
FreemarkerUtil.generateFile(data,template,docFile);
|
|
|
ResponseUtil.docResponse("甲供物资超欠供说明.doc",docFile,response);
|
|
|
}
|