parent
96583304ec
commit
0377e75ebf
@ -27,6 +27,7 @@ import itn.com.cmm.MjonMsgSendVO;
|
|||||||
import itn.com.cmm.OptimalMsgResultDTO;
|
import itn.com.cmm.OptimalMsgResultDTO;
|
||||||
import itn.com.cmm.util.MsgSendUtils;
|
import itn.com.cmm.util.MsgSendUtils;
|
||||||
import itn.com.cmm.util.SlackMessageFormatUtil;
|
import itn.com.cmm.util.SlackMessageFormatUtil;
|
||||||
|
import itn.com.cmm.util.StringUtil;
|
||||||
import itn.let.kakao.kakaoComm.KakaoSendAdvcVO;
|
import itn.let.kakao.kakaoComm.KakaoSendAdvcVO;
|
||||||
import itn.let.kakao.kakaoComm.KakaoVO;
|
import itn.let.kakao.kakaoComm.KakaoVO;
|
||||||
import itn.let.mail.service.StatusResponse;
|
import itn.let.mail.service.StatusResponse;
|
||||||
@ -795,14 +796,15 @@ private int parseIntOrDefault(String value, int defaultValue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void sendMessagesIfOverFifty(int cnt, String callTo) throws Exception {
|
public void sendMessagesIfOverFifty(int cnt, String callTo) throws Exception {
|
||||||
//대량문자 발송 안내 = 01
|
|
||||||
//50건 이상일 경우만 발송
|
|
||||||
if(
|
if(
|
||||||
cnt >= 50
|
cnt >= 50 //50건 이상일 경우만 발송
|
||||||
&& !sysMsgTodaySendYn(callTo)
|
&& StringUtil.isNotEmpty(callTo) // null, "" 체크
|
||||||
&& "Y".equals(selectSmsNotiIfOverFiftySetting())
|
&& callTo.startsWith("010") // 010으로 시작하는 휴대폰번호일 경우
|
||||||
|
&& "Y".equals(selectSmsNotiIfOverFiftySetting()) // 안내문자 발송 on 인경우만
|
||||||
|
&& !sysMsgTodaySendYn(callTo) // 금일 1회 이상 보낸 이력없을 경우만 발송
|
||||||
) {
|
) {
|
||||||
// 금일 1회 이상 보낸 이력없을 경우만 발송
|
|
||||||
|
//50건이상 발송 안내문자 구분값 = 01
|
||||||
String sendMsgType = "01";
|
String sendMsgType = "01";
|
||||||
String today = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
String today = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
|
||||||
String contents = "[인터넷 대량문자발송안내] 문자온에서 "+ callTo + " 번호로 " + today + "에 인터넷 대량 문자(50통 이상)가 발송되었습니다."
|
String contents = "[인터넷 대량문자발송안내] 문자온에서 "+ callTo + " 번호로 " + today + "에 인터넷 대량 문자(50통 이상)가 발송되었습니다."
|
||||||
|
|||||||
@ -4187,9 +4187,13 @@ public class MjonMsgDataServiceImpl extends EgovAbstractServiceImpl implements M
|
|||||||
// 총 발송 건수
|
// 총 발송 건수
|
||||||
returnMap.put("resultSts", instTotalCnt);
|
returnMap.put("resultSts", instTotalCnt);
|
||||||
|
|
||||||
|
//50건이상 문자발송 시 안내메시지 전송
|
||||||
try {
|
try {
|
||||||
//50건이상 문자발송 시 안내메시지 전송
|
if(
|
||||||
mjonCommon.sendMessagesIfOverFifty(instTotalCnt, mjonMsgVO.getCallFrom());
|
"p".equals(userInfo.getDept()) // 개인회원일 경우에만 발송
|
||||||
|
) {
|
||||||
|
mjonCommon.sendMessagesIfOverFifty(instTotalCnt, mjonMsgVO.getCallFrom());
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("sendMessagesIfOverFifty method exception.");
|
System.out.println("sendMessagesIfOverFifty method exception.");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user