|
@@ -75,19 +75,21 @@ public class ReportServiceImpl implements IReportService {
|
|
|
if (res != null) {
|
|
|
// 文件硬盘真实路径
|
|
|
String timeStamp = new Date().getTime() + "";
|
|
|
- String rootPath = temp + File.separator + "智能选址报告" + File.separator + res.getBsm();
|
|
|
- File f = new File(rootPath);
|
|
|
+ String rootDir = temp;
|
|
|
+ String filePath = "/智能选址报告/" + res.getBsm();
|
|
|
+ String allPath = rootDir + filePath;
|
|
|
+
|
|
|
+ File f = new File(allPath);
|
|
|
if (!f.exists()) {
|
|
|
f.mkdirs();
|
|
|
}
|
|
|
String reportPath = res.getXmmc() + "(选址报告)_" + timeStamp + ".docx";
|
|
|
// ###选址报告###
|
|
|
- createReport(res, rootPath + File.separator + reportPath, xzbsmList);
|
|
|
+ createReport(res, allPath + "/" + reportPath, xzbsmList);
|
|
|
// 生成返回结果
|
|
|
- fzxzReport.setRootPath(StringUtils.getFileStaticPath(rootPath));
|
|
|
- fzxzReport.setReportfile(StringUtils.getFileStaticPath(rootPath + File.separator + reportPath));
|
|
|
+ fzxzReport.setReportfile(filePath + "/" + reportPath);
|
|
|
fzxzReport.setBsm(bsm);
|
|
|
- fzxzReport.setFxbg(fzxzReport.getReportfile());
|
|
|
+ // fzxzReport.setFxbg(fzxzReport.getReportfile());
|
|
|
fzxzReport.setJsdw(res.getJsdw());
|
|
|
fzxzReport.setXmmc(res.getXmmc());
|
|
|
// 查询分析结果图斑信息
|