From edfbdc1f05e1dd6270e6eaf4f033cd67e3491610 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 25 Jul 2023 10:21:10 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=9C=EA=B8=80=EC=84=9C=EC=8B=9D=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crdn/service/bean/Crdn01ServiceBean.java | 5 ++--- .../xit/fims/crdn/web/Crdn01Controller.java | 7 +++++-- .../webapp/resources/format/cvlcptOrgnl.hwp | Bin 0 -> 21504 bytes 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 src/main/webapp/resources/format/cvlcptOrgnl.hwp diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java index b80b3864..c12a5388 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java @@ -58,15 +58,14 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic return crdn01Bean.removeCivilComplaint(crdnIDs); } - public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery) { + public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, String formatFilePath) { + crdnQuery.setView("hwp"); DataObject dataObject = crdn01Bean.getCivilComplaintOriginalInfo(crdnQuery); SimpleDateFormat ymdhmsFormat = new SimpleDateFormat("yyyyMMddHHmmss"); SimpleDateFormat ymdFormat = new SimpleDateFormat("yyyyMMdd"); SimpleDateFormat ymdHypenFormat = new SimpleDateFormat("yyyy-MM-dd"); - String formatFilePath = "files" + File.separator + "format" + File.separator + "cvlcptOrgnl.hwp"; - HWPFile hwpFile; try { hwpFile = HWPReader.fromFile(formatFilePath); diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java index 877b1eb2..8105ab25 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java @@ -179,7 +179,10 @@ public class Crdn01Controller extends ApplicationController { * @return hwp파일 */ @RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do") - public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery) { - return crdn01Service.makeFileFromHwpFormat(crdnQuery); + public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, HttpServletRequest request) { + + String formatFilePath = request.getServletContext().getRealPath("resources/format/cvlcptOrgnl.hwp"); + + return crdn01Service.makeFileFromHwpFormat(crdnQuery, formatFilePath); } } diff --git a/src/main/webapp/resources/format/cvlcptOrgnl.hwp b/src/main/webapp/resources/format/cvlcptOrgnl.hwp new file mode 100644 index 0000000000000000000000000000000000000000..a20edc00d1ccbaa0d7548d9e06620b61c8268540 GIT binary patch literal 21504 zcmeHP2V7Ih)(_n-=nB$N?1Cso1VTa+)I~*6k)>}a0!j-#kO=6aE)XjM3So__C?z5) zA|+OW0*R3>C1S)N1OfzzkdSV$n35HJatP&6AR{YknQh>K63%feu5KpaXFibNtPSpon=XTpCF2lm1O!7mi1 z0ow`-05k*^1r6m_2YHy(uVW6$!XJeoPVn56iWV_#P{<6(4-~9nzOchEFW5E!511!7 zhD>FABc$3ScV$)Q%0H+W@u$>;U){z!qR90F?h{3IB@u56R!m{0B?`;a@%fr{#D)=nM25 zfF28w&X)n01uz?64!~T1c>s{?uL5)-0Q3l#16TyG7~mU#B>?gO3IIz1pl6*DfHHsz zfGU6*fI5H%z%qd40Ga?R09FD(ZLI!<{+Z_5G_U`i=zK7`g3_0j8n8RJ`kraPURHiA zgVG?tVRBVVAD<}O(ue?Yjo+QUd7NK!nlhFCTO2AMLzzzh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