한글서식파일 위치 변경

main
이범준 1 year ago
parent e825b47c4a
commit edfbdc1f05

@ -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);

@ -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);
}
}

Loading…
Cancel
Save