Compare commits

...

2 Commits

@ -114,13 +114,20 @@ WHERE tix.send_type='NI'
** [ ] ** [ ]
* 0000000000 * 0000000000
* 100 * 100
* 259 3 * 259 3
* 0000000000 * 0000000000
* 0000000100 * 0000000100
* 0000000200 * 0000000200
********************************************** */ ********************************************** */
-- [응답반복부에서 개별 자료 찾기]
-- 응답받은 주민번호와 발송메시지로 조회하여 DATA_ID 찾음
SELECT *
FROM TB_NICE_SMS_SNDNG_REQUST tnssr
WHERE tnssr.IHIDNUM = '' -- 응답받은 주민번호
AND REGEXP_REPLACE(tnssr.SNDNG_MSSAGE, '[[:space:]]+', '') = ''; -- 응답받은 발송메시지
/* ********************************************** /* **********************************************
* accept * accept

@ -446,6 +446,8 @@ public class NiceCiDTO {
private String useYn; private String useYn;
private String ntcntalkTmplatCode;
private String registId; private String registId;
private LocalDateTime registDt; private LocalDateTime registDt;

@ -66,10 +66,10 @@ public class NiceCiSendBulkService {
}); });
for(NiceCiDTO.InputXit xit : list) { for(NiceCiDTO.InputXit xit : list) {
final String tmpltId = xit.getJobCd(); final NiceCiDTO.TmpltMngDTO tmpltMngDTO = niceCiMapper.selectTmpltMsg(xit.getJobCd())
final NiceCiDTO.TmpltMngDTO tmpltMngDTO = niceCiMapper.selectTmpltMsg(tmpltId)
.orElseThrow(() -> new EnsException(EnsErrCd.NO_DATA_FOUND, EnsErrCd.NO_DATA_FOUND.getCodeNm())); .orElseThrow(() -> new EnsException(EnsErrCd.NO_DATA_FOUND, EnsErrCd.NO_DATA_FOUND.getCodeNm()));
final String sndMsg = tmpltMngDTO.getMessage();//.replace("~~@@!!", "#{").replace("!!@@~~", "}"); final String sndMsg = tmpltMngDTO.getMessage();//.replace("~~@@!!", "#{").replace("!!@@~~", "}");
final String ntcntalkTmplatCode = tmpltMngDTO.getNtcntalkTmplatCode();
final OrgMng orgMng = niceCiMapper.selectKkoBpApiUrlFromEnsOrgMng(xit.getOrgCd()) final OrgMng orgMng = niceCiMapper.selectKkoBpApiUrlFromEnsOrgMng(xit.getOrgCd())
.orElseThrow(() -> new EnsException(EnsErrCd.NO_DATA_FOUND, EnsErrCd.NO_DATA_FOUND.getCodeNm())); .orElseThrow(() -> new EnsException(EnsErrCd.NO_DATA_FOUND, EnsErrCd.NO_DATA_FOUND.getCodeNm()));
@ -93,7 +93,7 @@ public class NiceCiSendBulkService {
// 공통부 set // 공통부 set
setNiceCiApiRequestCommon(nCommon, niceSmsReqId); setNiceCiApiRequestCommon(nCommon, niceSmsReqId);
// 개별부 set // 개별부 set
setNiceCiApiPrivateReq(ciRequest, tmpltId, sndMsg, data); setNiceCiApiPrivateReq(ciRequest, ntcntalkTmplatCode, sndMsg, data);
// 조회요청반복부 set // 조회요청반복부 set
setQueryRequest(queryRequest, data); setQueryRequest(queryRequest, data);
// 버튼요청반복부 set // 버튼요청반복부 set
@ -176,11 +176,11 @@ public class NiceCiSendBulkService {
/** /**
* set * set
* @param ciRequest NiceCiApiDTO.Request * @param ciRequest NiceCiApiDTO.Request
* @param tmpltId template ID * @param ntcntalkTmplatCode template ID
* @param sndMsg 릿 * @param sndMsg 릿
* @param data NiceCiDTO.InputDataXit data * @param data NiceCiDTO.InputDataXit data
*/ */
private void setNiceCiApiPrivateReq(final NiceCiApiDTO.Request ciRequest, final String tmpltId, String sndMsg, final NiceCiDTO.InputDataXit data){ private void setNiceCiApiPrivateReq(final NiceCiApiDTO.Request ciRequest, final String ntcntalkTmplatCode, String sndMsg, final NiceCiDTO.InputDataXit data){
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// 개별요청부 START // 개별요청부 START
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
@ -204,7 +204,7 @@ public class NiceCiSendBulkService {
sndMsg = sndMsg.replace(entry.getKey(), entry.getValue()); sndMsg = sndMsg.replace(entry.getKey(), entry.getValue());
} }
ciRequest.setSndngMssage(sndMsg); // 발송메세지 ciRequest.setSndngMssage(sndMsg); // 발송메세지
ciRequest.setNtcntalkTmplatCode(tmpltId); // 알림톡 템플릿 코드 ciRequest.setNtcntalkTmplatCode(ntcntalkTmplatCode); // 알림톡 템플릿 코드
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// 개별요청부 END // 개별요청부 END
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

@ -189,6 +189,7 @@
, tmplt_cd , tmplt_cd
, message , message
, title , title
, ntcntalk_tmplat_code
FROM ens_tmplt_mng FROM ens_tmplt_mng
WHERE tmplt_cd = #{tmpltCd} WHERE tmplt_cd = #{tmpltCd}
</select> </select>

Loading…
Cancel
Save