|
@@ -71,19 +71,11 @@ public class ReportServiceImpl implements IReportService {
|
|
|
f.mkdirs();
|
|
|
}
|
|
|
String reportPath = res.getXmmc() + "(选址报告)_" + timeStamp + ".docx";
|
|
|
- // String simplePath = res.getXmmc() + "(选址简报)_" + timeStamp + ".docx";
|
|
|
- // String zipPath = res.getXmmc() + "_" + timeStamp + ".zip";
|
|
|
// 选址报告
|
|
|
createReport(res, rootPath + File.separator + reportPath, xzbsmList);
|
|
|
- // 选址简报
|
|
|
- // createSimpleReport(res, rootPath + File.separator + simplePath, xzbsmList);
|
|
|
- // zip打包
|
|
|
- // createZipReport(res, rootPath + File.separator + zipPath, rootPath + File.separator + reportPath, rootPath + File.separator + simplePath);
|
|
|
// 生成返回结果
|
|
|
fzxzReport.setRootPath(StringUtils.getFileStaticPath(rootPath));
|
|
|
fzxzReport.setReportfile(StringUtils.getFileStaticPath(rootPath + File.separator + reportPath));
|
|
|
- // fzxzReport.setSimplefile(StringUtils.getFileStaticPath(rootPath + File.separator + simplePath));
|
|
|
- // fzxzReport.setZipfile(StringUtils.getFileStaticPath(rootPath + File.separator + zipPath));
|
|
|
fzxzReport.setBsm(bsm);
|
|
|
fzxzReport.setFxbg(fzxzReport.getReportfile());
|
|
|
fzxzReport.setJsdw(res.getJsdw());
|
|
@@ -161,17 +153,17 @@ public class ReportServiceImpl implements IReportService {
|
|
|
FzxzXzyzDTO fzxzXzyzDTO = fzxzXzyzDTOList.get(i);
|
|
|
map.put("YXYZMC", fzxzXzyzDTO.getYxyzmc());
|
|
|
String yztj = "";
|
|
|
- // if (fzxzXzyzDTO.getYztj() != null) {
|
|
|
- // if ("C".equals(fzxzXzyzDTO.getYztj().toUpperCase())) {
|
|
|
- // yztj = "包含";
|
|
|
- // }
|
|
|
- // if ("N".equals(fzxzXzyzDTO.getYztj().toUpperCase())) {
|
|
|
- // yztj = "不包含";
|
|
|
- // }
|
|
|
- // if ("A".equals(fzxzXzyzDTO.getYztj().toUpperCase()) || "F".equals(fzxzXzyzDTO.getYztj().toUpperCase())) {
|
|
|
- // yztj = "分析";
|
|
|
- // }
|
|
|
- // }
|
|
|
+ if (fzxzXzyzDTO.getSpatial_type() != null) {
|
|
|
+ if ("contain".equals(fzxzXzyzDTO.getSpatial_type())) {
|
|
|
+ yztj = "包含";
|
|
|
+ } else if ("n_contain".equals(fzxzXzyzDTO.getSpatial_type())) {
|
|
|
+ yztj = "不包含";
|
|
|
+ } else if ("identity".equals(fzxzXzyzDTO.getSpatial_type())) {
|
|
|
+ yztj = "相交";
|
|
|
+ } else if ("n_identity".equals(fzxzXzyzDTO.getSpatial_type())) {
|
|
|
+ yztj = "不相交";
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
map.put("YZTJ_TEXT", yztj);
|
|
|
Float yxz = (float) 0;
|