diff --git a/src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java b/src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java index 5a64c335..ede6f80f 100644 --- a/src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java +++ b/src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java @@ -85,6 +85,8 @@ import itn.let.mjo.msgdata.service.MjonMsgDataService; import itn.let.mjo.msgdata.service.MjonMsgDataVO; import itn.let.mjo.msgdata.service.MjonMsgReturnVO; import itn.let.mjo.msgdata.service.PhoneVO; +import itn.let.mjo.msgsent.service.MjonMsgSentService; +import itn.let.mjo.msgsent.service.MjonMsgSentVO; import itn.let.mjo.pay.service.MjonPayService; import itn.let.mjo.pay.service.MjonPayVO; import itn.let.mjo.spammsg.service.MjonSpamMsgService; @@ -176,6 +178,9 @@ public class MjonMsgDataController { @Resource(name = "mberGrdService") MberGrdService mberGrdService; + @Resource(name = "MjonMsgSentService") + private MjonMsgSentService mjonMsgSentService; + private static final Logger logger = LoggerFactory.getLogger(MjonMsgDataController.class); /** @@ -5964,4 +5969,62 @@ public class MjonMsgDataController { return modelAndView; } + /** + * 문자발송 리스트 화면 불러오기 + * + * @param MjonMsgDataVO + * @param + * @param sessionVO + * @param model + * @return + * @throws Exception + */ + @RequestMapping(value= {"/web/mjon/msgdata/selectMjMsgSentListAjax.do"}) + public String selectMjMsgSentListAjax( + @ModelAttribute("searchVO") MjonMsgSentVO mjonMsgSentVO, + ModelMap model) throws Exception { + + //로그인 권한정보 불러오기 + LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; + String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); + + List mjMsgSentList = null; + /** pageing */ + PaginationInfo paginationInfo = new PaginationInfo(); + + if(loginVO != null) { + mjonMsgSentVO.setUserId(userId); + + // 검색 리스트 불러오기 + if(mjonMsgSentVO.getPageUnit() != 10) { + mjonMsgSentVO.setPageUnit(mjonMsgSentVO.getPageUnit()); + } + + //기본 내림차순 정렬 + if(mjonMsgSentVO.getSearchSortOrd().equals("")) { + mjonMsgSentVO.setSearchSortOrd("desc"); + mjonMsgSentVO.setSearchSortCnd("regdate"); + } + + paginationInfo.setCurrentPageNo(mjonMsgSentVO.getPageIndex()); + paginationInfo.setRecordCountPerPage(mjonMsgSentVO.getPageUnit()); + paginationInfo.setPageSize(mjonMsgSentVO.getPageSize()); + + mjonMsgSentVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); + mjonMsgSentVO.setLastIndex(paginationInfo.getLastRecordIndex()); + mjonMsgSentVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); + + //전체 발송 리스트 불러오기 + mjMsgSentList = mjonMsgSentService.selectAllMsgSentList(mjonMsgSentVO); + + paginationInfo.setTotalRecordCount( mjMsgSentList.size()> 0 ? (Integer.parseInt((mjMsgSentList.get(0)).getTotMsgCnt())) : 0); + } + + model.addAttribute("mjMsgSentList", mjMsgSentList); + model.addAttribute("paginationInfo", paginationInfo); + model.addAttribute("totalRecordCount", paginationInfo.getTotalRecordCount()); + + return "web/msgdata/MsgSentListAjax"; + } + } diff --git a/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp b/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp index 96b7e196..8b7a2a0d 100644 --- a/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp @@ -3189,6 +3189,16 @@ function checkNumber(event) { return true; } +//문자 발송목록(msgSentType : 01:문자전송, 02:선거문자) +function getMjMsgSentListAll(pageNo, msgSenTType) { + document.sentListForm.pageIndex.value = pageNo; + + var sendData= $(document.sentListForm).serializeArray(); + $("#mjMsgSentListAllLoad").load("/web/mjon/msgdata/selectMjMsgSentListAjax.do", sendData ,function(response, status, xhr){ + + }); +} +
@@ -3198,6 +3208,16 @@ function checkNumber(event) {
+
+ + + + + + + +
+
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
발송일시 -
-
형태 -
-
발송방식 -
-
내용받는사람 -
-
발신번호 -
-
발송건수 -
-
재전송 선택
2023-06-10 17:50그림WEB010-1547-5895 외 1명010-5897-78958
2023-06-10 17:50그림WEB010-1547-5895 외 1명010-5897-78958
-
- - -
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
- +
+
+ +
@@ -3963,7 +3906,7 @@ function checkNumber(event) {
- +
diff --git a/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgSentListAjax.jsp b/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgSentListAjax.jsp new file mode 100644 index 00000000..7c7f47b6 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/web/msgdata/MsgSentListAjax.jsp @@ -0,0 +1,122 @@ +<%-- + Class Name : SendNumberList.jsp + Description : 발신번호 리스트 조회 페이지 + Modification Information + + 수정일 수정자 수정내용 + ------- -------- --------------------------- + 2021.03.31 신명섭 최초 생성 + + Copyright (C) 2009 by ITN All right reserved. +--%> +<%@ page contentType="text/html; charset=utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%> + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
발송일시 +
+
형태 +
+
발송방식 +
+
내용받는사람 +
+
발신번호 +
+
발송건수 +
+
재전송 선택
2023-06-10 17:50그림WEB010-1547-5895 외 1명010-5897-78958
2023-06-10 17:50그림WEB010-1547-5895 외 1명010-5897-78958
+
+ + + + +
    + +
+
+