치환데이터 오류 수정

This commit is contained in:
hehihoho3@gmail.com 2024-12-04 16:48:40 +09:00
parent fc921335db
commit dbff5dfcbe
3 changed files with 11 additions and 20 deletions

View File

@ -267,12 +267,19 @@ public final class MsgSendUtils {
for (Map.Entry<String, Function<MjonMsgSendVO, String>> entry : placeholders.entrySet()) {
String placeholder = entry.getKey();
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)) {
statusResponseSet(statusResponse, HttpStatus.BAD_REQUEST, "치환 문구중 " + placeholder + " 데이터가 없습니다.");
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()));
}
// 전송사 코드 셋팅
String agentCode = "00".equals(mjonMsgVO.getAgentCode())
? MsgSendUtils.assignAgentBasedOnCount(agentSendCounts, sendRateList)

View File

@ -4063,7 +4063,7 @@ function getMjMsgSentListAll(pageNo) {
placeholder="번호를 입력하세요"
onfocus="this.placeholder=''"
onblur="this.placeholder='번호를 입력하세요'"
style="width:340px;">01083584250</textarea>
style="width:340px;"></textarea>
<!-- <button type="button" class="btnType btnType6">번호추가</button> -->
<div class="btn_popup_wrap">
<button type="button" class="btnType btnType6 btn_add_number addCallToF">번호추가<i class="qmMark"></i></button>

View File

@ -1121,7 +1121,6 @@ function fn_sendMsgData(){
}
}
return false;
console.log(' !!! imgFilePath : ', imgFilePath);
// img 처리 영역
@ -1286,7 +1285,7 @@ function sendMsgAjax_advc(){
formData["mjonMsgSendVOList"] = $selectedData;
// JSON 데이터 확인
console.log("최종 formData:", JSON.stringify(formData));
// console.log("최종 formData:", JSON.stringify(formData));
var url = "/web/mjon/msgdata/sendMsgDataAjax_advc.do";