From 97b6d88f1c38276964d158a5c2c57114b8e6c279 Mon Sep 17 00:00:00 2001 From: tolag3 Date: Wed, 12 Feb 2025 16:14:36 +0900 Subject: [PATCH] Merge branch 'tolag3' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pdf 변환 수정 --- src/main/java/kcc/com/pdf/service/PdfVO.java | 1 + .../kcc/com/pdf/service/impl/PdfServiceImpl.java | 14 +++++++++++++- .../sqlmap/com/pdf/Pdf_SQL_Oracle.xml | 7 +++++-- src/main/webapp/WEB-INF/jsp/com/pdf/pdfList.jsp | 3 ++- .../jsp/seed/_extra/gtm/trublend/trublendView.jsp | 3 ++- 5 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/main/java/kcc/com/pdf/service/PdfVO.java b/src/main/java/kcc/com/pdf/service/PdfVO.java index 373c17f7..07f491d0 100644 --- a/src/main/java/kcc/com/pdf/service/PdfVO.java +++ b/src/main/java/kcc/com/pdf/service/PdfVO.java @@ -74,5 +74,6 @@ public class PdfVO { @JsonIgnore private String fileName; @JsonIgnore private String fileExtension; @JsonIgnore private String rceptNo; + @JsonIgnore private String codeName; } \ No newline at end of file diff --git a/src/main/java/kcc/com/pdf/service/impl/PdfServiceImpl.java b/src/main/java/kcc/com/pdf/service/impl/PdfServiceImpl.java index 01395c4d..94fd9a63 100644 --- a/src/main/java/kcc/com/pdf/service/impl/PdfServiceImpl.java +++ b/src/main/java/kcc/com/pdf/service/impl/PdfServiceImpl.java @@ -197,11 +197,23 @@ public class PdfServiceImpl extends EgovAbstractServiceImpl implements PdfServic //pdf 포함파일 명들 StringBuilder fileNames = new StringBuilder("표지"); + //codeName + + processList.stream().forEach(t -> { + + PdfVO.Options optionsFileBefore = new PdfVO.Options(); + optionsFileBefore.setMergeSrcUri(hostUri + "/gtm/case/pdfSubjectPop.do?caseNo=" + t.getCodeName()); + PdfVO.Option optionFileBefore = new PdfVO.Option(); + optionFileBefore.setLabel(t.getCodeName()); + optionFileBefore.setHtmlUrlResource(true); + optionsFileBefore.getOption().add(optionFileBefore); + mergeTask.getOptions().add(optionsFileBefore); + + PdfVO.Options options = new PdfVO.Options(); if(t.getResultFilePath().startsWith("/usr/local/homepage/WEB-INF/views/site/case/upload/uploadFiles/case")) { - ; options.setMergeSrcUri("file:/Z:" + t.getResultFilePath().substring("/usr/local/homepage/WEB-INF/views/site/case/upload/uploadFiles/case".length())); }else { options.setMergeSrcUri("file:/Z:" + pdfFilePath + t.getResultFilePath()); diff --git a/src/main/resources/egovframework/sqlmap/com/pdf/Pdf_SQL_Oracle.xml b/src/main/resources/egovframework/sqlmap/com/pdf/Pdf_SQL_Oracle.xml index 1929407e..eeaae712 100644 --- a/src/main/resources/egovframework/sqlmap/com/pdf/Pdf_SQL_Oracle.xml +++ b/src/main/resources/egovframework/sqlmap/com/pdf/Pdf_SQL_Oracle.xml @@ -13,9 +13,10 @@ , BB.FILE_PATH || BB.FILE_ORGNAME AS resultFilePath , BB.FILE_EXTENSION AS fileExtension , CC.RCEPT_NO AS rceptNo + , E.CODE_NAME AS codeName FROM ( - SELECT + SELECT D.RCEPT_NO AS CFRNC_NO , D.CASE_NO @@ -46,6 +47,8 @@ ON TO_CHAR(AA.CFRNC_NO) = BB.FILE_NO LEFT OUTER JOIN C_MASTER CC ON AA.CASE_NO = CC.CASE_NO + LEFT JOIN C_CODE E + ON BB.FILE_GUBUN = E.CODE_IDXS WHERE BB.DEL_GUBUN = 'N' AND AA.CASE_NO = #caseNo# diff --git a/src/main/webapp/WEB-INF/jsp/com/pdf/pdfList.jsp b/src/main/webapp/WEB-INF/jsp/com/pdf/pdfList.jsp index 617d56c1..84787193 100644 --- a/src/main/webapp/WEB-INF/jsp/com/pdf/pdfList.jsp +++ b/src/main/webapp/WEB-INF/jsp/com/pdf/pdfList.jsp @@ -45,7 +45,8 @@
- + + 새로고침 diff --git a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublend/trublendView.jsp b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublend/trublendView.jsp index 07f17c4e..c4851b3f 100644 --- a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublend/trublendView.jsp +++ b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublend/trublendView.jsp @@ -1000,7 +1000,8 @@ function docOpen(){ - + +