알림톡 발송 수정

This commit is contained in:
leejunho 2025-01-20 11:38:36 +09:00
parent dd5100b9c8
commit c87ecbefc0
5 changed files with 60 additions and 9 deletions

View File

@ -67,4 +67,14 @@ public class PdfController {
return "/com/pdf/pdfSubjectPop"; return "/com/pdf/pdfSubjectPop";
} }
@RequestMapping(value = "/gtm/case/pdfEndPop.do")
public String pdfEndPop(
@RequestParam Map<String, Object> map
, @ModelAttribute(name = "pdfVO") PdfVO pdfVO
, Model model
) throws Exception {
return "/com/pdf/pdfSubjectPop";
}
} }

View File

@ -223,7 +223,7 @@ public class PdfServiceImpl extends EgovAbstractServiceImpl implements PdfServic
* pdf 파일명들 * pdf 파일명들
*/ */
PdfVO.Options options2 = new PdfVO.Options(); PdfVO.Options options2 = new PdfVO.Options();
options2.setMergeSrcUri(hostUri + "/gtm/case/pdfSubjectPop.do?caseNo=" + fileNames); options2.setMergeSrcUri(hostUri + "/gtm/case/pdfEndPop.do?caseNo=" + fileNames);
PdfVO.Option option2 = new PdfVO.Option(); PdfVO.Option option2 = new PdfVO.Option();
option2.setLabel("파일 끝"); option2.setLabel("파일 끝");
option2.setHtmlUrlResource(true); option2.setHtmlUrlResource(true);

View File

@ -274,6 +274,8 @@ public class XxxController {
//신청인_담당자배정_1 //신청인_담당자배정_1
{ {
Map<String, String> chihwan = new HashMap<String, String>(); Map<String, String> chihwan = new HashMap<String, String>();
chihwan.put("respondent", "당사자");
chihwan.put("caseNo", "사건번호"); chihwan.put("caseNo", "사건번호");
chihwan.put("team", "조사관 팀"); chihwan.put("team", "조사관 팀");
chihwan.put("examiner", "조사관이름"); chihwan.put("examiner", "조사관이름");

View File

@ -622,24 +622,31 @@ public class FairnetUtils {
requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "cfrnc", "tel", "email"}); requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "cfrnc", "tel", "email"});
break; break;
case "TEMPLATE_BOTH_CHULSUK": // 양당사자_출석요구 n차 case "TEMPLATE_BOTH_CHULSUK": // 양당사자_출석요구 n차
at.setTemplatecode("bizp_2024112810492916931760451"); // at.setTemplatecode("bizp_2024112810492916931760451");
at.setTemplatecode("bizp_2025011515420924487914030");
content = "[한국공정거래조정원]\r\n" content = "[한국공정거래조정원]\r\n"
+ "귀사(하)가 진행 중인 분쟁조정 사건 [사건번호 #{caseNo}]의 출석조사(#{nCha}}차) 기일이 확정되었습니다. \r\n" + "귀사(하)가 진행 중인 분쟁조정 사건 [사건번호 #{caseNo}]의 출석조사(#{nCha}차) 기일이 확정되었습니다. \r\n"
+ "[https://fairnet.kofair.or.kr]에서 확인해주시기 바랍니다."; + "향후 담당 조사관이 공문 등을 통해 연락드릴 예정입니다. \r\n"
+ "https://fairnet.kofair.or.kr";
requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "nCha"}); requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "nCha"});
break; break;
case "TEMPLATE_BOTH_TONGJI": // 양당사자_통지 case "TEMPLATE_BOTH_TONGJI": // 양당사자_통지
at.setTemplatecode("bizp_2024112810492916931854671"); // at.setTemplatecode("bizp_2024112810492916931854671");
at.setTemplatecode("bizp_2025011515425124487733149");
content = "[한국공정거래조정원]\r\n" content = "[한국공정거래조정원]\r\n"
+ "귀사(하)가 진행 중인 분쟁조정 사건 [사건번호 #{caseNo}]에 대한 #{cfrnc}분쟁조정협의회 의결이 완료되었습니다.\r\n" + "귀사(하)가 진행 중인 분쟁조정 사건 [사건번호 #{caseNo}]에 대한 #{cfrnc}분쟁조정협의회 의결이 완료되었습니다.\r\n"
+ "[https://fairnet.kofair.or.kr]에서 해당 내용을 확인해주시기 바랍니다."; + "한국공정거래조정원 분쟁조정사건처리시스템에서 확인해주시기 바랍니다.\r\n"
+ "https://fairnet.kofair.or.kr";
requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "cfrnc"}); requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "cfrnc"});
break; break;
case "TEMPLATE_APP_BOWAN": // 신청인_보완요구 n차 case "TEMPLATE_APP_BOWAN": // 신청인_보완요구 n차
at.setTemplatecode("bizp_2024112810522719814540186"); // at.setTemplatecode("bizp_2024112810522719814540186");
content = "[한국공정거래조정원]\r\n" at.setTemplatecode("bizp_2025011515404892092190436");
content =
"[한국공정거래조정원]\r\n"
+ "귀사(하)가 신청한 분쟁조정 신청사건(사건번호 #{caseNo})에 대한 보완(#{nCha}차)이 필요합니다.\r\n" + "귀사(하)가 신청한 분쟁조정 신청사건(사건번호 #{caseNo})에 대한 보완(#{nCha}차)이 필요합니다.\r\n"
+ "[https://fairnet.kofair.or.kr]에서 확인해주시기 바랍니다."; + "향후 담당 조사관이 공문 등을 통해 연락드릴 예정입니다. \r\n"
+ "https://fairnet.kofair.or.kr";
requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "nCha"}); requiredPlaceholders.put(at.getTemplatecode(), new String[]{"caseNo", "nCha"});
break; break;
} }

View File

@ -0,0 +1,32 @@
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Centered Text PDF</title>
<style>
@page {
size: A4;
margin: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 297mm; /* A4 height */
width: 210mm; /* A4 width */
margin: 0;
}
.centered-text {
font-size: 13px;
text-align: center;
}
</style>
</head>
<body>
<div class="centered-text">
<pre><c:out value="${pdfVO.caseNo}" escapeXml="false"/></pre>
</div>
</body>
</html>