치환데이터 오류 수정
This commit is contained in:
parent
fc921335db
commit
dbff5dfcbe
@ -267,12 +267,19 @@ public final class MsgSendUtils {
|
|||||||
for (Map.Entry<String, Function<MjonMsgSendVO, String>> entry : placeholders.entrySet()) {
|
for (Map.Entry<String, Function<MjonMsgSendVO, String>> entry : placeholders.entrySet()) {
|
||||||
String placeholder = entry.getKey();
|
String placeholder = entry.getKey();
|
||||||
String value = entry.getValue().apply(sendVO);
|
String value = entry.getValue().apply(sendVO);
|
||||||
if (smsTxtTemp.contains(placeholder)) {
|
System.out.println("");
|
||||||
|
// log.info(" + smsTxtTemp [{}]", smsTxtTemp);
|
||||||
|
// log.info(" + placeholder [{}]", placeholder);
|
||||||
|
// log.info(" + value [{}]", value);
|
||||||
|
// log.info(" + smsTxtTemp.contains(placeholder) [{}]", smsTxtTemp.contains(placeholder));
|
||||||
|
if (smsTxt.contains(placeholder)) {
|
||||||
if (StringUtils.isEmpty(value)) {
|
if (StringUtils.isEmpty(value)) {
|
||||||
statusResponseSet(statusResponse, HttpStatus.BAD_REQUEST, "치환 문구중 " + placeholder + " 데이터가 없습니다.");
|
statusResponseSet(statusResponse, HttpStatus.BAD_REQUEST, "치환 문구중 " + placeholder + " 데이터가 없습니다.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
smsTxt = smsTxtTemp.replace(placeholder, value);
|
smsTxt = smsTxt.replace(placeholder, value);
|
||||||
|
// log.info(" + smsTxt [{}]", smsTxt);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -368,21 +375,6 @@ public final class MsgSendUtils {
|
|||||||
sendVO.setReqDate(sdf.format(calendar.getTime()));
|
sendVO.setReqDate(sdf.format(calendar.getTime()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 전송사 코드 셋팅
|
// 전송사 코드 셋팅
|
||||||
String agentCode = "00".equals(mjonMsgVO.getAgentCode())
|
String agentCode = "00".equals(mjonMsgVO.getAgentCode())
|
||||||
? MsgSendUtils.assignAgentBasedOnCount(agentSendCounts, sendRateList)
|
? MsgSendUtils.assignAgentBasedOnCount(agentSendCounts, sendRateList)
|
||||||
|
|||||||
@ -4063,7 +4063,7 @@ function getMjMsgSentListAll(pageNo) {
|
|||||||
placeholder="번호를 입력하세요"
|
placeholder="번호를 입력하세요"
|
||||||
onfocus="this.placeholder=''"
|
onfocus="this.placeholder=''"
|
||||||
onblur="this.placeholder='번호를 입력하세요'"
|
onblur="this.placeholder='번호를 입력하세요'"
|
||||||
style="width:340px;">01083584250</textarea>
|
style="width:340px;"></textarea>
|
||||||
<!-- <button type="button" class="btnType btnType6">번호추가</button> -->
|
<!-- <button type="button" class="btnType btnType6">번호추가</button> -->
|
||||||
<div class="btn_popup_wrap">
|
<div class="btn_popup_wrap">
|
||||||
<button type="button" class="btnType btnType6 btn_add_number addCallToF">번호추가<i class="qmMark"></i></button>
|
<button type="button" class="btnType btnType6 btn_add_number addCallToF">번호추가<i class="qmMark"></i></button>
|
||||||
|
|||||||
@ -1121,7 +1121,6 @@ function fn_sendMsgData(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
console.log(' !!! imgFilePath : ', imgFilePath);
|
console.log(' !!! imgFilePath : ', imgFilePath);
|
||||||
|
|
||||||
// img 처리 영역
|
// img 처리 영역
|
||||||
@ -1286,7 +1285,7 @@ function sendMsgAjax_advc(){
|
|||||||
formData["mjonMsgSendVOList"] = $selectedData;
|
formData["mjonMsgSendVOList"] = $selectedData;
|
||||||
|
|
||||||
// JSON 데이터 확인
|
// JSON 데이터 확인
|
||||||
console.log("최종 formData:", JSON.stringify(formData));
|
// console.log("최종 formData:", JSON.stringify(formData));
|
||||||
|
|
||||||
|
|
||||||
var url = "/web/mjon/msgdata/sendMsgDataAjax_advc.do";
|
var url = "/web/mjon/msgdata/sendMsgDataAjax_advc.do";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user