Merge branch 'wyh'
This commit is contained in:
commit
6673582b91
@ -14,6 +14,8 @@ import itn.com.cmm.util.StringUtil;
|
||||
import itn.com.utl.fcc.service.EgovStringUtil;
|
||||
import itn.let.mjo.conf.service.MjonConfService;
|
||||
import itn.let.mjo.conf.service.MjonConfVO;
|
||||
import itn.let.mjo.msgagent.service.MjonMsgAgentStsService;
|
||||
import itn.let.mjo.msgagent.service.MjonMsgAgentStsVO;
|
||||
|
||||
@Controller
|
||||
public class MjonConfController {
|
||||
@ -21,7 +23,8 @@ public class MjonConfController {
|
||||
@Resource(name = "mjonConfService")
|
||||
private MjonConfService mjonConfService;
|
||||
|
||||
|
||||
@Resource(name = "mjonMsgAgentStsService")
|
||||
private MjonMsgAgentStsService mjonMsgAgentStsService;
|
||||
|
||||
|
||||
/**
|
||||
@ -96,5 +99,38 @@ public class MjonConfController {
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/web/mjon/conf/selectBlineSendCheckAjax.do")
|
||||
public ModelAndView selectBlineSendCheckAjax(
|
||||
@ModelAttribute MjonMsgAgentStsVO mjonMsgAgentStsVO
|
||||
, Model model) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
try {
|
||||
|
||||
System.out.println(mjonMsgAgentStsVO.getAgentCode());
|
||||
if(mjonMsgAgentStsVO.getAgentCode().equals("b1")||mjonMsgAgentStsVO.getAgentCode().equals("B1")) {
|
||||
mjonMsgAgentStsVO.setAgentCode("08");
|
||||
}else if(mjonMsgAgentStsVO.getAgentCode().equals("b2")||mjonMsgAgentStsVO.getAgentCode().equals("B2")) {
|
||||
mjonMsgAgentStsVO.setAgentCode("09");
|
||||
}
|
||||
|
||||
MjonMsgAgentStsVO vo = mjonMsgAgentStsService.selectMsgAgentBlineYnInfo(mjonMsgAgentStsVO);
|
||||
|
||||
if(vo == null || "".equals(vo.getUseYn()) || !"Y".equals(vo.getUseYn())) {
|
||||
modelAndView.addObject("message", "문자 발송 불가");
|
||||
modelAndView.addObject("result", "fail");
|
||||
} else {
|
||||
modelAndView.addObject("message", "문자 발송 가능");
|
||||
modelAndView.addObject("result", "success");
|
||||
}
|
||||
|
||||
}catch (Exception e) {
|
||||
modelAndView.addObject("message", "오류가 발생하였습니다.");
|
||||
modelAndView.addObject("result", "fail");
|
||||
}
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
|
||||
@ -703,10 +703,10 @@ public class MjonMsgServiceImpl extends EgovAbstractServiceImpl implements MjonM
|
||||
//인비토 딜레이문자 삭제
|
||||
IVTResult = mjonReservMsgDAO.deleteIVTMsgSeqListByMsgSeq(mjonResvMsgVO);
|
||||
|
||||
//제이제이 예약취소 삭제
|
||||
//제이제이 딜레이문자 삭제
|
||||
jjBline01Result = mjonReservMsgDAO.deleteJJB01MsgSeqListByMsgSeq(mjonResvMsgVO);
|
||||
|
||||
//제이제이 예약취소 삭제
|
||||
//제이제이 딜레이문자 삭제
|
||||
jjBline02Result = mjonReservMsgDAO.deleteJJB02MsgSeqListByMsgSeq(mjonResvMsgVO);
|
||||
|
||||
//삭제 결과 합산
|
||||
|
||||
@ -908,6 +908,7 @@ public class MjonMsgDataController {
|
||||
|
||||
mberManageVO = mjonMsgDataService.selectMberManageInfo(userId);
|
||||
|
||||
model.addAttribute("blineCode", mberManageVO.getBlineCode());
|
||||
}
|
||||
|
||||
model.addAttribute("exceptSpamYn", mberManageVO.getExceptSpamYn());
|
||||
|
||||
@ -73,7 +73,8 @@
|
||||
</select>
|
||||
|
||||
<select id="mjonMsgAgentStsDAO.selectMsgAgentBlineYnInfo" parameterClass="mjonMsgAgentStsVO" resultClass="mjonMsgAgentStsVO">
|
||||
SELECT BLINE_YN blineYn FROM MJ_AGENT_SEND_RATE
|
||||
SELECT USE_YN useYn
|
||||
FROM MJ_AGENT_SEND_RATE
|
||||
WHERE AGENT_CODE = #agentCode#
|
||||
AND MSG_TYPE = 'S'
|
||||
ORDER BY BLINE_YN DESC
|
||||
|
||||
@ -1505,6 +1505,13 @@ $(document).ready(function (){
|
||||
//일반문자 라이오 선택해 주기
|
||||
$("#send_adYnN").prop("checked", true);
|
||||
|
||||
// Bline 확연 및 라디오 버튼 클릭 이벤트 추가
|
||||
var blineCodeYn = $("#blineCode").val();
|
||||
if(blineCodeYn != 'N' && blineCodeYn != ''){
|
||||
$('input[name="send_adYn"]').val(['Y']);
|
||||
$(".send_adYnN").css('display', 'none');
|
||||
}
|
||||
|
||||
$('.delLi').each(function(){
|
||||
|
||||
$(this).remove();
|
||||
@ -2956,6 +2963,14 @@ function fnTestSend(){
|
||||
return false;
|
||||
}
|
||||
|
||||
var blineCodeYn = $("#blineCode").val();
|
||||
if(blineCodeYn != 'N'){
|
||||
if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
||||
alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//MJ_MSG_GROUP_DATA 누락데이터 체크
|
||||
//if (getMsgGroupDataErrorCheck() == false) {
|
||||
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
||||
|
||||
@ -857,7 +857,28 @@ function checkConf() {
|
||||
|
||||
return confCheck;
|
||||
}
|
||||
|
||||
function blineSendCheck(blineCode) {
|
||||
|
||||
var confCheck = false;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/web/mjon/conf/selectBlineSendCheckAjax.do",
|
||||
data: {"agentCode":blineCode},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (returnData, status) {
|
||||
if(returnData.result == "fail") {
|
||||
console.log(returnData.message);
|
||||
}else if(returnData.result == "success"){
|
||||
confCheck = true;
|
||||
}
|
||||
}
|
||||
,error: function (e) {console.log("ERROR : ", e); }
|
||||
});
|
||||
|
||||
return confCheck;
|
||||
}
|
||||
|
||||
//문자발송 처리 함수
|
||||
function fn_sendMsgData(){
|
||||
@ -905,6 +926,15 @@ function fn_sendMsgData(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
var blineCodeYn = $("#blineCode").val();
|
||||
if(blineCodeYn != 'N'){
|
||||
if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
||||
alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//MJ_MSG_GROUP_DATA 누락데이터 체크
|
||||
//if (getMsgGroupDataErrorCheck() == false) {
|
||||
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
||||
|
||||
@ -595,8 +595,17 @@ function txtExport(event){
|
||||
|
||||
$(document).ready(function (){
|
||||
|
||||
// Bline 확연 및 라디오 버튼 클릭 이벤트 추가
|
||||
var blineCodeYn = $("#blineCode").val();
|
||||
if(blineCodeYn != 'N' && blineCodeYn != ''){
|
||||
$('input[name="send_adYn"]').val(['Y']);
|
||||
$(".send_adYnN").css('display', 'none');
|
||||
advMsgInsert();
|
||||
}
|
||||
|
||||
$('.bottom_content .area_total_count').hide();
|
||||
|
||||
//미리보기 이미지 영역 숨김 처리
|
||||
$('.preiew_img').hide();
|
||||
$('.prePhoto').hide();
|
||||
|
||||
@ -1685,6 +1694,13 @@ $(document).ready(function (){
|
||||
//일반문자 라이오 선택해 주기
|
||||
$("#send_adYnN").prop("checked", true);
|
||||
|
||||
// Bline 확연 및 라디오 버튼 클릭 이벤트 추가
|
||||
var blineCodeYn = $("#blineCode").val();
|
||||
if(blineCodeYn != 'N' && blineCodeYn != ''){
|
||||
$('input[name="send_adYn"]').val(['Y']);
|
||||
$(".send_adYnN").css('display', 'none');
|
||||
}
|
||||
|
||||
$('.delLi').each(function(){
|
||||
|
||||
$(this).remove();
|
||||
@ -2675,6 +2691,13 @@ function fnTestSend(){
|
||||
return false;
|
||||
}
|
||||
|
||||
var blineCodeYn = $("#blineCode").val();
|
||||
if(blineCodeYn != 'N'){
|
||||
if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
||||
alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//MJ_MSG_GROUP_DATA 누락데이터 체크
|
||||
//if (getMsgGroupDataErrorCheck() == false) {
|
||||
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
||||
@ -3014,6 +3037,8 @@ $(".btn_event_cash").off().on("click", function(){
|
||||
<input type="hidden" id="evnShortMsgCnt" name="evnShortMsgCnt" value="0"/><!-- 치환 이벤트 단문 건수 -->
|
||||
<input type="hidden" id="evnLongMsgCnt" name="evnLongMsgCnt" value="0"/><!-- 치환 이벤트 장문 건수 -->
|
||||
|
||||
<input type="hidden" id="blineCode" name="blineCode" value="<c:out value="${blineCode}"/>"/>
|
||||
|
||||
<!-- <div class="top_content get_excel" id="tab1_2"> -->
|
||||
<div class="heading">
|
||||
<h2>대량문자/단체문자 전송</h2>
|
||||
@ -3043,8 +3068,8 @@ $(".btn_event_cash").off().on("click", function(){
|
||||
<tr>
|
||||
<th scope="row">문자분류</th>
|
||||
<td class="send_cf">
|
||||
<input id="send_adYnN" type="radio"name="send_adYn" value="N" checked="checked">
|
||||
<label for="send_adYnN">일반</label>
|
||||
<input class="send_adYnN" id="send_adYnN" type="radio"name="send_adYn" value="N" checked="checked">
|
||||
<label class="send_adYnN" for="send_adYnN">일반</label>
|
||||
<input id="send_adYnY" type="radio" name="send_adYn" value="Y">
|
||||
<label for="send_adYnY">광고</label>
|
||||
</td>
|
||||
|
||||
@ -471,6 +471,29 @@ function checkConf() {
|
||||
return confCheck;
|
||||
}
|
||||
|
||||
function blineSendCheck(blineCode) {
|
||||
|
||||
var confCheck = false;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/web/mjon/conf/selectBlineSendCheckAjax.do",
|
||||
data: {"agentCode":blineCode},
|
||||
dataType:'json',
|
||||
async: false,
|
||||
success: function (returnData, status) {
|
||||
if(returnData.result == "fail") {
|
||||
console.log(returnData.message);
|
||||
}else if(returnData.result == "success"){
|
||||
confCheck = true;
|
||||
}
|
||||
}
|
||||
,error: function (e) {console.log("ERROR : ", e); }
|
||||
});
|
||||
|
||||
return confCheck;
|
||||
}
|
||||
|
||||
//문자발송 처리 함수
|
||||
function fn_sendMsgData(){
|
||||
|
||||
@ -515,6 +538,14 @@ function fn_sendMsgData(){
|
||||
|
||||
}
|
||||
|
||||
var blineCodeYn = $("#blineCode").val();
|
||||
if(blineCodeYn != 'N'){
|
||||
if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
||||
alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//MJ_MSG_GROUP_DATA 누락데이터 체크
|
||||
//if (getMsgGroupDataErrorCheck() == false) {
|
||||
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user