|
|
|
|
@ -94,6 +94,15 @@ public class MessageInterfaceController extends AbstractController {
|
|
|
|
|
nuri2Id = stng.string("MODULE_ID");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//메시지서비스 선순위 정책 찾기
|
|
|
|
|
String priorOrderPolicy = "";
|
|
|
|
|
messageQuery = new MessageQuery().setSggCd(systemSgg).setStngInfoType("05").setMsgPrps(msgPrps)
|
|
|
|
|
.setTaskSeCd(taskSeCd);
|
|
|
|
|
stng = messageMapper.selectStng(messageQuery);
|
|
|
|
|
if(stng != null && !stng.isEmpty()) {
|
|
|
|
|
priorOrderPolicy = stng.string("PRORD_PLCY");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//발신전화번호 찾기
|
|
|
|
|
String callbackNo = "";
|
|
|
|
|
messageQuery = new MessageQuery().setSggCd(systemSgg).setStngInfoType("04").setMsgPrps(msgPrps)
|
|
|
|
|
@ -321,7 +330,15 @@ public class MessageInterfaceController extends AbstractController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(able_kko && able_rcs) { // 알림톡+RCS+XMS
|
|
|
|
|
messageEntity.configMsgTypes(new String[]{"ALT","RCS",XMS_msgType});
|
|
|
|
|
String[] priorOrder = new String[]{"ALT","RCS",XMS_msgType};
|
|
|
|
|
|
|
|
|
|
if(priorOrderPolicy.equals("ALT")) { // 알림톡 전송을 최우선으로 사용
|
|
|
|
|
priorOrder = new String[]{"ALT","RCS",XMS_msgType};
|
|
|
|
|
} else if(priorOrderPolicy.equals("RCS")) { // RCS 전송을 최우선으로 사용
|
|
|
|
|
priorOrder = new String[]{"RCS","ALT",XMS_msgType};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
messageEntity.configMsgTypes(priorOrder);
|
|
|
|
|
messageEntity.configContentsTypeN("ALT");
|
|
|
|
|
messageEntity.configContentsTypeN(RCS_contentsType);
|
|
|
|
|
messageEntity.configContentsTypeN(XMS_contentsType);
|
|
|
|
|
|