|
|
|
@ -145,7 +145,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, String> makeFileFromHwpFormat(CrdnQuery query) {
|
|
|
|
|
public Map<String, Object> makeFileFromHwpFormat(CrdnQuery query) {
|
|
|
|
|
String baseFormatFilePath = ("template/hwp/cvlcptOrgnl_text.hwp");
|
|
|
|
|
String attachFormatFilePath = ("template/hwp/cvlcptOrgnl_photo.hwp");
|
|
|
|
|
|
|
|
|
@ -250,6 +250,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
|
if(i+3 < photoCnt)
|
|
|
|
|
InsertingImageCell.IMPL_InsertPicture(attachFormatFile, "오른쪽아래사진", fileInfoList.get(i+3).string("URL"));
|
|
|
|
|
AddUtil.appendToLast(attachFormatFile, resultFile);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HWPWriter.toFile(resultFile, resultHwpPath);
|
|
|
|
@ -257,9 +258,10 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String downlaodFileName = "민원내역원본_" + currentTime + ".hwp";
|
|
|
|
|
Map<String, String> result = Map.of(
|
|
|
|
|
Map<String, Object> result = Map.of(
|
|
|
|
|
"filename", downlaodFileName,
|
|
|
|
|
"filePath", resultHwpPath,
|
|
|
|
|
"fileName", downlaodFileName
|
|
|
|
|
"file", new File(resultHwpPath)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|