|
@@ -51,22 +51,14 @@ public class ReportServiceImpl implements IReportService {
|
|
|
@Resource
|
|
|
ShpFileMapper shpFileMapper;
|
|
|
|
|
|
- @Value("${Hgxfx.tempWin}")
|
|
|
- private String tempWin;
|
|
|
- @Value("${Hgxfx.tempLinux}")
|
|
|
- private String tempLinux;
|
|
|
+ @Value("${Hgxfx.temp}")
|
|
|
+ private String temp;
|
|
|
|
|
|
@Resource
|
|
|
GhdkaMapper ghdkaMapper;
|
|
|
|
|
|
// 根据选址任务生成报告
|
|
|
public FzxzReport createReport(String bsm, List<String> dkIds) {
|
|
|
- String temp = tempWin;
|
|
|
- // windows 使用 tempWin, linux 使用 tempLinux
|
|
|
- if (System.getProperty("os.name").toLowerCase().contains("linux")) {
|
|
|
- temp = tempLinux;
|
|
|
- }
|
|
|
-
|
|
|
// 保存生成报告日志
|
|
|
iLogService.saveLog(bsm, "智能选址", "开始生成选址报告", "info");
|
|
|
|
|
@@ -85,7 +77,7 @@ public class ReportServiceImpl implements IReportService {
|
|
|
}
|
|
|
String reportPath = res.getXmmc() + "(选址报告)_" + timeStamp + ".docx";
|
|
|
// TODO ###选址报告耗时,暂时隐藏###
|
|
|
- // createReport(res, allPath + "/" + reportPath, dkIds);
|
|
|
+ createReport(res, allPath + "/" + reportPath, dkIds);
|
|
|
// 生成返回结果
|
|
|
fzxzReport.setReportfile(filePath + "/" + reportPath);
|
|
|
fzxzReport.setBsm(bsm);
|