문자전송시 B라인 운영여부 체크
@392a994b5c0ad1598d360cd1e3cedaabddc7c58b
--- src/main/java/itn/let/mjo/conf/web/MjonConfController.java
+++ src/main/java/itn/let/mjo/conf/web/MjonConfController.java
... | ... | @@ -14,6 +14,8 @@ |
| 14 | 14 |
import itn.com.utl.fcc.service.EgovStringUtil; |
| 15 | 15 |
import itn.let.mjo.conf.service.MjonConfService; |
| 16 | 16 |
import itn.let.mjo.conf.service.MjonConfVO; |
| 17 |
+import itn.let.mjo.msgagent.service.MjonMsgAgentStsService; |
|
| 18 |
+import itn.let.mjo.msgagent.service.MjonMsgAgentStsVO; |
|
| 17 | 19 |
|
| 18 | 20 |
@Controller |
| 19 | 21 |
public class MjonConfController {
|
... | ... | @@ -21,7 +23,8 @@ |
| 21 | 23 |
@Resource(name = "mjonConfService") |
| 22 | 24 |
private MjonConfService mjonConfService; |
| 23 | 25 |
|
| 24 |
- |
|
| 26 |
+ @Resource(name = "mjonMsgAgentStsService") |
|
| 27 |
+ private MjonMsgAgentStsService mjonMsgAgentStsService; |
|
| 25 | 28 |
|
| 26 | 29 |
|
| 27 | 30 |
/** |
... | ... | @@ -96,5 +99,38 @@ |
| 96 | 99 |
return modelAndView; |
| 97 | 100 |
} |
| 98 | 101 |
|
| 99 |
- |
|
| 102 |
+ @RequestMapping(value = "/web/mjon/conf/selectBlineSendCheckAjax.do") |
|
| 103 |
+ public ModelAndView selectBlineSendCheckAjax( |
|
| 104 |
+ @ModelAttribute MjonMsgAgentStsVO mjonMsgAgentStsVO |
|
| 105 |
+ , Model model) throws Exception {
|
|
| 106 |
+ |
|
| 107 |
+ ModelAndView modelAndView = new ModelAndView(); |
|
| 108 |
+ modelAndView.setViewName("jsonView");
|
|
| 109 |
+ |
|
| 110 |
+ try {
|
|
| 111 |
+ |
|
| 112 |
+ System.out.println(mjonMsgAgentStsVO.getAgentCode()); |
|
| 113 |
+ if(mjonMsgAgentStsVO.getAgentCode().equals("b1")||mjonMsgAgentStsVO.getAgentCode().equals("B1")) {
|
|
| 114 |
+ mjonMsgAgentStsVO.setAgentCode("08");
|
|
| 115 |
+ }else if(mjonMsgAgentStsVO.getAgentCode().equals("b2")||mjonMsgAgentStsVO.getAgentCode().equals("B2")) {
|
|
| 116 |
+ mjonMsgAgentStsVO.setAgentCode("09");
|
|
| 117 |
+ } |
|
| 118 |
+ |
|
| 119 |
+ MjonMsgAgentStsVO vo = mjonMsgAgentStsService.selectMsgAgentBlineYnInfo(mjonMsgAgentStsVO); |
|
| 120 |
+ |
|
| 121 |
+ if(vo == null || "".equals(vo.getUseYn()) || !"Y".equals(vo.getUseYn())) {
|
|
| 122 |
+ modelAndView.addObject("message", "문자 발송 불가");
|
|
| 123 |
+ modelAndView.addObject("result", "fail");
|
|
| 124 |
+ } else {
|
|
| 125 |
+ modelAndView.addObject("message", "문자 발송 가능");
|
|
| 126 |
+ modelAndView.addObject("result", "success");
|
|
| 127 |
+ } |
|
| 128 |
+ |
|
| 129 |
+ }catch (Exception e) {
|
|
| 130 |
+ modelAndView.addObject("message", "오류가 발생하였습니다.");
|
|
| 131 |
+ modelAndView.addObject("result", "fail");
|
|
| 132 |
+ } |
|
| 133 |
+ |
|
| 134 |
+ return modelAndView; |
|
| 135 |
+ } |
|
| 100 | 136 |
} |
--- src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java
+++ src/main/java/itn/let/mjo/msg/service/impl/MjonMsgServiceImpl.java
... | ... | @@ -703,10 +703,10 @@ |
| 703 | 703 |
//인비토 딜레이문자 삭제 |
| 704 | 704 |
IVTResult = mjonReservMsgDAO.deleteIVTMsgSeqListByMsgSeq(mjonResvMsgVO); |
| 705 | 705 |
|
| 706 |
- //제이제이 예약취소 삭제 |
|
| 706 |
+ //제이제이 딜레이문자 삭제 |
|
| 707 | 707 |
jjBline01Result = mjonReservMsgDAO.deleteJJB01MsgSeqListByMsgSeq(mjonResvMsgVO); |
| 708 | 708 |
|
| 709 |
- //제이제이 예약취소 삭제 |
|
| 709 |
+ //제이제이 딜레이문자 삭제 |
|
| 710 | 710 |
jjBline02Result = mjonReservMsgDAO.deleteJJB02MsgSeqListByMsgSeq(mjonResvMsgVO); |
| 711 | 711 |
|
| 712 | 712 |
//삭제 결과 합산 |
--- src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
+++ src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
... | ... | @@ -908,6 +908,7 @@ |
| 908 | 908 |
|
| 909 | 909 |
mberManageVO = mjonMsgDataService.selectMberManageInfo(userId); |
| 910 | 910 |
|
| 911 |
+ model.addAttribute("blineCode", mberManageVO.getBlineCode());
|
|
| 911 | 912 |
} |
| 912 | 913 |
|
| 913 | 914 |
model.addAttribute("exceptSpamYn", mberManageVO.getExceptSpamYn());
|
--- src/main/resources/egovframework/sqlmap/let/agent/MjonAgent_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/agent/MjonAgent_SQL_mysql.xml
... | ... | @@ -73,7 +73,8 @@ |
| 73 | 73 |
</select> |
| 74 | 74 |
|
| 75 | 75 |
<select id="mjonMsgAgentStsDAO.selectMsgAgentBlineYnInfo" parameterClass="mjonMsgAgentStsVO" resultClass="mjonMsgAgentStsVO"> |
| 76 |
- SELECT BLINE_YN blineYn FROM MJ_AGENT_SEND_RATE |
|
| 76 |
+ SELECT USE_YN useYn |
|
| 77 |
+ FROM MJ_AGENT_SEND_RATE |
|
| 77 | 78 |
WHERE AGENT_CODE = #agentCode# |
| 78 | 79 |
AND MSG_TYPE = 'S' |
| 79 | 80 |
ORDER BY BLINE_YN DESC |
--- src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
... | ... | @@ -1505,6 +1505,13 @@ |
| 1505 | 1505 |
//일반문자 라이오 선택해 주기 |
| 1506 | 1506 |
$("#send_adYnN").prop("checked", true);
|
| 1507 | 1507 |
|
| 1508 |
+ // Bline 확연 및 라디오 버튼 클릭 이벤트 추가 |
|
| 1509 |
+ var blineCodeYn = $("#blineCode").val();
|
|
| 1510 |
+ if(blineCodeYn != 'N' && blineCodeYn != ''){
|
|
| 1511 |
+ $('input[name="send_adYn"]').val(['Y']);
|
|
| 1512 |
+ $(".send_adYnN").css('display', 'none');
|
|
| 1513 |
+ } |
|
| 1514 |
+ |
|
| 1508 | 1515 |
$('.delLi').each(function(){
|
| 1509 | 1516 |
|
| 1510 | 1517 |
$(this).remove(); |
... | ... | @@ -2956,6 +2963,14 @@ |
| 2956 | 2963 |
return false; |
| 2957 | 2964 |
} |
| 2958 | 2965 |
|
| 2966 |
+ var blineCodeYn = $("#blineCode").val();
|
|
| 2967 |
+ if(blineCodeYn != 'N'){
|
|
| 2968 |
+ if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
|
| 2969 |
+ alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
|
| 2970 |
+ return false; |
|
| 2971 |
+ } |
|
| 2972 |
+ } |
|
| 2973 |
+ |
|
| 2959 | 2974 |
//MJ_MSG_GROUP_DATA 누락데이터 체크 |
| 2960 | 2975 |
//if (getMsgGroupDataErrorCheck() == false) {
|
| 2961 | 2976 |
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
--- src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataView.jsp
... | ... | @@ -857,7 +857,28 @@ |
| 857 | 857 |
|
| 858 | 858 |
return confCheck; |
| 859 | 859 |
} |
| 860 |
- |
|
| 860 |
+function blineSendCheck(blineCode) {
|
|
| 861 |
+ |
|
| 862 |
+ var confCheck = false; |
|
| 863 |
+ |
|
| 864 |
+ $.ajax({
|
|
| 865 |
+ type: "POST", |
|
| 866 |
+ url: "/web/mjon/conf/selectBlineSendCheckAjax.do", |
|
| 867 |
+ data: {"agentCode":blineCode},
|
|
| 868 |
+ dataType:'json', |
|
| 869 |
+ async: false, |
|
| 870 |
+ success: function (returnData, status) {
|
|
| 871 |
+ if(returnData.result == "fail") {
|
|
| 872 |
+ console.log(returnData.message); |
|
| 873 |
+ }else if(returnData.result == "success"){
|
|
| 874 |
+ confCheck = true; |
|
| 875 |
+ } |
|
| 876 |
+ } |
|
| 877 |
+ ,error: function (e) {console.log("ERROR : ", e); }
|
|
| 878 |
+ }); |
|
| 879 |
+ |
|
| 880 |
+ return confCheck; |
|
| 881 |
+} |
|
| 861 | 882 |
|
| 862 | 883 |
//문자발송 처리 함수 |
| 863 | 884 |
function fn_sendMsgData(){
|
... | ... | @@ -905,6 +926,15 @@ |
| 905 | 926 |
|
| 906 | 927 |
} |
| 907 | 928 |
|
| 929 |
+ |
|
| 930 |
+ var blineCodeYn = $("#blineCode").val();
|
|
| 931 |
+ if(blineCodeYn != 'N'){
|
|
| 932 |
+ if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
|
| 933 |
+ alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
|
| 934 |
+ return false; |
|
| 935 |
+ } |
|
| 936 |
+ } |
|
| 937 |
+ |
|
| 908 | 938 |
//MJ_MSG_GROUP_DATA 누락데이터 체크 |
| 909 | 939 |
//if (getMsgGroupDataErrorCheck() == false) {
|
| 910 | 940 |
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
--- src/main/webapp/WEB-INF/jsp/web/msgdata/excel/MsgExcelDataSMLView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/excel/MsgExcelDataSMLView.jsp
... | ... | @@ -595,8 +595,17 @@ |
| 595 | 595 |
|
| 596 | 596 |
$(document).ready(function (){
|
| 597 | 597 |
|
| 598 |
+ // Bline 확연 및 라디오 버튼 클릭 이벤트 추가 |
|
| 599 |
+ var blineCodeYn = $("#blineCode").val();
|
|
| 600 |
+ if(blineCodeYn != 'N' && blineCodeYn != ''){
|
|
| 601 |
+ $('input[name="send_adYn"]').val(['Y']);
|
|
| 602 |
+ $(".send_adYnN").css('display', 'none');
|
|
| 603 |
+ advMsgInsert(); |
|
| 604 |
+ } |
|
| 605 |
+ |
|
| 598 | 606 |
$('.bottom_content .area_total_count').hide();
|
| 599 | 607 |
|
| 608 |
+ //미리보기 이미지 영역 숨김 처리 |
|
| 600 | 609 |
$('.preiew_img').hide();
|
| 601 | 610 |
$('.prePhoto').hide();
|
| 602 | 611 |
|
... | ... | @@ -1685,6 +1694,13 @@ |
| 1685 | 1694 |
//일반문자 라이오 선택해 주기 |
| 1686 | 1695 |
$("#send_adYnN").prop("checked", true);
|
| 1687 | 1696 |
|
| 1697 |
+ // Bline 확연 및 라디오 버튼 클릭 이벤트 추가 |
|
| 1698 |
+ var blineCodeYn = $("#blineCode").val();
|
|
| 1699 |
+ if(blineCodeYn != 'N' && blineCodeYn != ''){
|
|
| 1700 |
+ $('input[name="send_adYn"]').val(['Y']);
|
|
| 1701 |
+ $(".send_adYnN").css('display', 'none');
|
|
| 1702 |
+ } |
|
| 1703 |
+ |
|
| 1688 | 1704 |
$('.delLi').each(function(){
|
| 1689 | 1705 |
|
| 1690 | 1706 |
$(this).remove(); |
... | ... | @@ -2675,6 +2691,13 @@ |
| 2675 | 2691 |
return false; |
| 2676 | 2692 |
} |
| 2677 | 2693 |
|
| 2694 |
+ var blineCodeYn = $("#blineCode").val();
|
|
| 2695 |
+ if(blineCodeYn != 'N'){
|
|
| 2696 |
+ if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
|
| 2697 |
+ alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
|
| 2698 |
+ return false; |
|
| 2699 |
+ } |
|
| 2700 |
+ } |
|
| 2678 | 2701 |
//MJ_MSG_GROUP_DATA 누락데이터 체크 |
| 2679 | 2702 |
//if (getMsgGroupDataErrorCheck() == false) {
|
| 2680 | 2703 |
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
... | ... | @@ -3014,6 +3037,8 @@ |
| 3014 | 3037 |
<input type="hidden" id="evnShortMsgCnt" name="evnShortMsgCnt" value="0"/><!-- 치환 이벤트 단문 건수 --> |
| 3015 | 3038 |
<input type="hidden" id="evnLongMsgCnt" name="evnLongMsgCnt" value="0"/><!-- 치환 이벤트 장문 건수 --> |
| 3016 | 3039 |
|
| 3040 |
+ <input type="hidden" id="blineCode" name="blineCode" value="<c:out value="${blineCode}"/>"/>
|
|
| 3041 |
+ |
|
| 3017 | 3042 |
<!-- <div class="top_content get_excel" id="tab1_2"> --> |
| 3018 | 3043 |
<div class="heading"> |
| 3019 | 3044 |
<h2>대량문자/단체문자 전송</h2> |
... | ... | @@ -3043,8 +3068,8 @@ |
| 3043 | 3068 |
<tr> |
| 3044 | 3069 |
<th scope="row">문자분류</th> |
| 3045 | 3070 |
<td class="send_cf"> |
| 3046 |
- <input id="send_adYnN" type="radio"name="send_adYn" value="N" checked="checked"> |
|
| 3047 |
- <label for="send_adYnN">일반</label> |
|
| 3071 |
+ <input class="send_adYnN" id="send_adYnN" type="radio"name="send_adYn" value="N" checked="checked"> |
|
| 3072 |
+ <label class="send_adYnN" for="send_adYnN">일반</label> |
|
| 3048 | 3073 |
<input id="send_adYnY" type="radio" name="send_adYn" value="Y"> |
| 3049 | 3074 |
<label for="send_adYnY">광고</label> |
| 3050 | 3075 |
</td> |
--- src/main/webapp/WEB-INF/jsp/web/msgdata/excel/MsgExcelDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/excel/MsgExcelDataView.jsp
... | ... | @@ -471,6 +471,29 @@ |
| 471 | 471 |
return confCheck; |
| 472 | 472 |
} |
| 473 | 473 |
|
| 474 |
+function blineSendCheck(blineCode) {
|
|
| 475 |
+ |
|
| 476 |
+ var confCheck = false; |
|
| 477 |
+ |
|
| 478 |
+ $.ajax({
|
|
| 479 |
+ type: "POST", |
|
| 480 |
+ url: "/web/mjon/conf/selectBlineSendCheckAjax.do", |
|
| 481 |
+ data: {"agentCode":blineCode},
|
|
| 482 |
+ dataType:'json', |
|
| 483 |
+ async: false, |
|
| 484 |
+ success: function (returnData, status) {
|
|
| 485 |
+ if(returnData.result == "fail") {
|
|
| 486 |
+ console.log(returnData.message); |
|
| 487 |
+ }else if(returnData.result == "success"){
|
|
| 488 |
+ confCheck = true; |
|
| 489 |
+ } |
|
| 490 |
+ } |
|
| 491 |
+ ,error: function (e) {console.log("ERROR : ", e); }
|
|
| 492 |
+ }); |
|
| 493 |
+ |
|
| 494 |
+ return confCheck; |
|
| 495 |
+} |
|
| 496 |
+ |
|
| 474 | 497 |
//문자발송 처리 함수 |
| 475 | 498 |
function fn_sendMsgData(){
|
| 476 | 499 |
|
... | ... | @@ -515,6 +538,14 @@ |
| 515 | 538 |
|
| 516 | 539 |
} |
| 517 | 540 |
|
| 541 |
+ var blineCodeYn = $("#blineCode").val();
|
|
| 542 |
+ if(blineCodeYn != 'N'){
|
|
| 543 |
+ if(!blineSendCheck(blineCodeYn)){ //문자온 conf-check
|
|
| 544 |
+ alert("현재 문자 발송하기 기능 점검 중입니다.\n\n잠시 후 다시 시도해주세요.");
|
|
| 545 |
+ return false; |
|
| 546 |
+ } |
|
| 547 |
+ } |
|
| 548 |
+ |
|
| 518 | 549 |
//MJ_MSG_GROUP_DATA 누락데이터 체크 |
| 519 | 550 |
//if (getMsgGroupDataErrorCheck() == false) {
|
| 520 | 551 |
// alert("고객님께서 발송한 최근문자가 발송결과에 표시되지않아, 문자발송이 임시로 차단되었습니다.\n문자온 고객센터에 문의해주세요.");
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?