--- src/main/java/itn/let/mjo/msgdata/service/impl/MjonMsgDataServiceImpl.java
+++ src/main/java/itn/let/mjo/msgdata/service/impl/MjonMsgDataServiceImpl.java
... | ... | @@ -4205,6 +4205,8 @@ |
| 4205 | 4205 |
mjonMsgVO.setMsgGroupId(mjonMsgSendVO.getMsgGroupId()); |
| 4206 | 4206 |
mjonMsgVO.setMsgType(mjonMsgSendVO.getMsgType()); |
| 4207 | 4207 |
|
| 4208 |
+ mjonMsgVO.setMmsSubject(mjonMsgSendVO.getSubject()); |
|
| 4209 |
+ |
|
| 4208 | 4210 |
|
| 4209 | 4211 |
//test - 스미싱의심 [발송승인, 발송취소] 조건 |
| 4210 | 4212 |
// mjonMsgVO.setDelayYn("N");
|
--- src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
+++ src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
... | ... | @@ -422,6 +422,7 @@ |
| 422 | 422 |
model.addAttribute("msgResendAllReplaceYn", searchVO.getMsgResendAllReplaceYn());
|
| 423 | 423 |
|
| 424 | 424 |
model.addAttribute("tabDision", "tab01");
|
| 425 |
+ |
|
| 425 | 426 |
}catch(Exception ex) {
|
| 426 | 427 |
ex.printStackTrace(); |
| 427 | 428 |
|
... | ... | @@ -440,7 +441,7 @@ |
| 440 | 441 |
*/ |
| 441 | 442 |
@RequestMapping(value= {"/web/mjon/msgdata/selectMsgDataSMLViewAjax.do"})
|
| 442 | 443 |
public String selectMsgDataSMLView(@ModelAttribute("searchVO") MjonMsgDataVO searchVO, CateCode cateCode, ModelMap model) throws Exception{
|
| 443 |
- |
|
| 444 |
+ |
|
| 444 | 445 |
//로그인 권한정보 불러오기 |
| 445 | 446 |
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
| 446 | 447 |
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
... | ... | @@ -638,7 +639,7 @@ |
| 638 | 639 |
model.addAttribute("resultPhonList", resultPhonList);
|
| 639 | 640 |
|
| 640 | 641 |
} |
| 641 |
- |
|
| 642 |
+ |
|
| 642 | 643 |
//발신번호 차단 리스트 불러오기 |
| 643 | 644 |
//List<String> resultBlockPhonList = mjonMsgDataService.selectBlockPhonNumList(); |
| 644 | 645 |
//model.addAttribute("resultBlockPhonList", resultBlockPhonList);
|
... | ... | @@ -646,7 +647,7 @@ |
| 646 | 647 |
// 문자 카테고리 리스트 불러오기 |
| 647 | 648 |
List<CateCode> cateConfList = letterService.selectCateConfWithList(categoryType); |
| 648 | 649 |
model.addAttribute("cateCodeList", cateConfList);
|
| 649 |
- |
|
| 650 |
+ |
|
| 650 | 651 |
//그림 문자 리스트 불러오기 |
| 651 | 652 |
LetterVO letterVO = new LetterVO(); |
| 652 | 653 |
if(letterVO.getPageUnit() != 10) {
|
... | ... | @@ -659,24 +660,25 @@ |
| 659 | 660 |
model.addAttribute("symbolList", symbolList);
|
| 660 | 661 |
|
| 661 | 662 |
//최근 전송 내역 |
| 662 |
- Calendar cal = Calendar.getInstance(); |
|
| 663 |
- Date now = new Date(); |
|
| 663 |
+ // 20241230 이호영 |
|
| 664 |
+ // 로딩 시간이 오래걸려 ajax로 따로 분리함 |
|
| 665 |
+// Calendar cal = Calendar.getInstance(); |
|
| 666 |
+// Date now = new Date(); |
|
| 664 | 667 |
|
| 665 |
- SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
|
|
| 668 |
+// SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
|
|
| 666 | 669 |
|
| 667 |
- cal.setTime(now); |
|
| 668 |
- cal.add(Calendar.DATE, -3); |
|
| 670 |
+// cal.setTime(now); |
|
| 671 |
+// cal.add(Calendar.DATE, -3); |
|
| 669 | 672 |
|
| 670 |
- String chkDate = format.format(cal.getTime()); |
|
| 671 |
- |
|
| 672 |
- searchVO.setMyMsgStDt(chkDate); //검색 시작일 저장 - 현재날짜로 부터 3일 이전 날짜로 시작 |
|
| 673 |
- List<?> resultLatestMsgList = mjonMsgDataService.selectLatestMsgList(searchVO); |
|
| 674 |
- model.addAttribute("resultLatestMsgList", resultLatestMsgList);
|
|
| 675 |
- |
|
| 673 |
+// String chkDate = format.format(cal.getTime()); |
|
| 674 |
+// searchVO.setMyMsgStDt(chkDate); //검색 시작일 저장 - 현재날짜로 부터 3일 이전 날짜로 시작 |
|
| 675 |
+// List<?> resultLatestMsgList = mjonMsgDataService.selectLatestMsgList(searchVO); |
|
| 676 |
+// model.addAttribute("resultLatestMsgList", resultLatestMsgList);
|
|
| 677 |
+ |
|
| 676 | 678 |
//자주보내는 번호 |
| 677 | 679 |
List<?> resultBookMarkMsgList = mjonMsgDataService.selectBookMarkMsgList(searchVO); |
| 678 | 680 |
model.addAttribute("resultBookMarkMsgList", resultBookMarkMsgList);
|
| 679 |
- |
|
| 681 |
+ |
|
| 680 | 682 |
|
| 681 | 683 |
/** pageing */ |
| 682 | 684 |
PaginationInfo paginationInfo = new PaginationInfo(); |
... | ... | @@ -695,9 +697,40 @@ |
| 695 | 697 |
model.addAttribute("paginationInfo", paginationInfo);
|
| 696 | 698 |
|
| 697 | 699 |
model.addAttribute("tabDision", searchVO.getTabDision());
|
| 700 |
+ |
|
| 701 |
+ |
|
| 698 | 702 |
return "web/msgdata/MsgDataSMLView"; |
| 699 | 703 |
} |
| 700 | 704 |
|
| 705 |
+ @RequestMapping(value= {"/web/mjon/msgdata/resultLatestMsgListAjax.do"})
|
|
| 706 |
+ public ResponseEntity<StatusResponse> cancelRegistIdChkAjax() throws Exception {
|
|
| 707 |
+ |
|
| 708 |
+ LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
|
| 709 |
+ String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
|
| 710 |
+ |
|
| 711 |
+ if(StringUtils.isEmpty(userId)) {
|
|
| 712 |
+ |
|
| 713 |
+ return ResponseEntity.ok().body(new StatusResponse(HttpStatus.OK, "", "")); |
|
| 714 |
+ } |
|
| 715 |
+ |
|
| 716 |
+ |
|
| 717 |
+ MjonMsgDataVO searchVO = new MjonMsgDataVO(); |
|
| 718 |
+ |
|
| 719 |
+ Calendar cal = Calendar.getInstance(); |
|
| 720 |
+ Date now = new Date(); |
|
| 721 |
+ |
|
| 722 |
+ SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
|
|
| 723 |
+ |
|
| 724 |
+ cal.setTime(now); |
|
| 725 |
+ cal.add(Calendar.DATE, -3); |
|
| 726 |
+ |
|
| 727 |
+ String chkDate = format.format(cal.getTime()); |
|
| 728 |
+ searchVO.setUserId(userId); |
|
| 729 |
+ searchVO.setMyMsgStDt(chkDate); //검색 시작일 저장 - 현재날짜로 부터 3일 이전 날짜로 시작 |
|
| 730 |
+ List<?> resultLatestMsgList = mjonMsgDataService.selectLatestMsgList(searchVO); |
|
| 731 |
+ |
|
| 732 |
+ return ResponseEntity.ok().body(new StatusResponse(HttpStatus.OK, "", resultLatestMsgList)); |
|
| 733 |
+ } |
|
| 701 | 734 |
|
| 702 | 735 |
|
| 703 | 736 |
/** |
... | ... | @@ -6299,6 +6332,7 @@ |
| 6299 | 6332 |
mjonMsgDataVO.setUserId(userId); |
| 6300 | 6333 |
mjonMsgDataVO.setMsgGroupId(mjonMsgDataVO.getMsgResendAllGroupId()); |
| 6301 | 6334 |
mjonMsgDataVO = mjonMsgDataService.selectMjMsgGroupInfoByResend(mjonMsgDataVO); |
| 6335 |
+ System.out.println("test!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
|
| 6302 | 6336 |
if (mjonMsgDataVO != null) {
|
| 6303 | 6337 |
String[] atchFiles = mjonMsgDataVO.getAtchFiles().split("\\^");
|
| 6304 | 6338 |
if (atchFiles.length >= 1) {
|
--- src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/MsgDataSMLView.jsp
... | ... | @@ -194,7 +194,65 @@ |
| 194 | 194 |
|
| 195 | 195 |
updateButtons(currentIndex); |
| 196 | 196 |
|
| 197 |
+ |
|
| 198 |
+ |
|
| 199 |
+ // 최근 전송내역 |
|
| 200 |
+ resultLatestMsgList(); |
|
| 201 |
+ |
|
| 197 | 202 |
}); |
| 203 |
+ |
|
| 204 |
+ |
|
| 205 |
+//최근 전송내역 |
|
| 206 |
+function resultLatestMsgList(){
|
|
| 207 |
+ |
|
| 208 |
+ |
|
| 209 |
+ $.ajax({
|
|
| 210 |
+ type:"POST", |
|
| 211 |
+ url:"/web/mjon/msgdata/resultLatestMsgListAjax.do", |
|
| 212 |
+ data:{},
|
|
| 213 |
+ dataType:'json', |
|
| 214 |
+ // timeout:(1000*30), |
|
| 215 |
+ success:function(data){
|
|
| 216 |
+ |
|
| 217 |
+ console.log('resultLatestMsgList data : ', data);
|
|
| 218 |
+ |
|
| 219 |
+ // 가져온 데이터 배열 |
|
| 220 |
+ let resultList = data.object; |
|
| 221 |
+ let $latestMsgUl = $('#latestMsgUl'); // 기존 리스트 UL
|
|
| 222 |
+ console.log('let $latestMsgUl : ', $latestMsgUl);
|
|
| 223 |
+ |
|
| 224 |
+ // 기존 내용을 비우기 |
|
| 225 |
+ $latestMsgUl.empty(); |
|
| 226 |
+ |
|
| 227 |
+ // 데이터가 있는 경우 |
|
| 228 |
+ if (resultList && resultList.length > 0) {
|
|
| 229 |
+ resultList.forEach(function(item, index) {
|
|
| 230 |
+ console.log(item.callTo + " : " + item.callTo); |
|
| 231 |
+ let listItem = |
|
| 232 |
+ '<li id="latestLi">' + |
|
| 233 |
+ '<input type="checkbox" id="addrChk_' + (index + 1) + '" name="latAddrChk" value="' + item.callTo + '">' + |
|
| 234 |
+ '<label for="addrChk_' + (index + 1) + '" class="label">최근 전송내역</label>' + |
|
| 235 |
+ '<p>' + item.callTo + '</p>' + |
|
| 236 |
+ '<button type="button" id="latestAddrDel">' + |
|
| 237 |
+ '<img src="/publish/images/popup/close3.png" alt="전화번호 삭제">' + |
|
| 238 |
+ '</button>' + |
|
| 239 |
+ '</li>'; |
|
| 240 |
+ |
|
| 241 |
+ $latestMsgUl.append(listItem); |
|
| 242 |
+ }); |
|
| 243 |
+ } else {
|
|
| 244 |
+ // 데이터가 없는 경우 |
|
| 245 |
+ $latestMsgUl.append('<li><p>최근 발송 내역이 없습니다.</p></li>');
|
|
| 246 |
+ } |
|
| 247 |
+ // console.log('$latestMsgUl : ', $latestMsgUl.html());
|
|
| 248 |
+ }, |
|
| 249 |
+ error:function(request , status, error){
|
|
| 250 |
+ console.log(' error ?');
|
|
| 251 |
+ console.log('request : ', request);
|
|
| 252 |
+ console.log('status : ', status);
|
|
| 253 |
+ } |
|
| 254 |
+ }); |
|
| 255 |
+} |
|
| 198 | 256 |
|
| 199 | 257 |
/* |
| 200 | 258 |
* 버튼 disabled 스크립트 |
... | ... | @@ -3479,7 +3537,7 @@ |
| 3479 | 3537 |
<div class="history_cont hascont current"> |
| 3480 | 3538 |
<div class="histroy_trans latestMsgArea" id="latestMsgArea"> |
| 3481 | 3539 |
<ul id="latestMsgUl"> |
| 3482 |
- <c:choose> |
|
| 3540 |
+ <%-- <c:choose> |
|
| 3483 | 3541 |
<c:when test="${not empty resultLatestMsgList}">
|
| 3484 | 3542 |
<c:forEach var="latestMsgList" items="${resultLatestMsgList}" varStatus="status">
|
| 3485 | 3543 |
<li id="latestLi"> |
... | ... | @@ -3495,7 +3553,7 @@ |
| 3495 | 3553 |
<p>최근 발송 내역이 없습니다.</p> |
| 3496 | 3554 |
</li> |
| 3497 | 3555 |
</c:otherwise> |
| 3498 |
- </c:choose> |
|
| 3556 |
+ </c:choose> --%> |
|
| 3499 | 3557 |
</ul> |
| 3500 | 3558 |
</div> |
| 3501 | 3559 |
<div class="popup_btn_wrap2 hisroy_btn" style="width: 230px;"> |
--- src/main/webapp/js/web/msgdata/init.js
+++ src/main/webapp/js/web/msgdata/init.js
... | ... | @@ -42,6 +42,7 @@ |
| 42 | 42 |
//최 하단 그림문자 탭 리스트 내용 불러오기 |
| 43 | 43 |
fnPhotoListAjax(1); |
| 44 | 44 |
|
| 45 |
+ |
|
| 45 | 46 |
// 내보관함 리스트 로그인이 완료된 경우에만 로드되도록 |
| 46 | 47 |
|
| 47 | 48 |
//그림문자 샘플 탭 활성화 시키기 |
--- src/main/webapp/js/web/msgdata/msgDataView.js
+++ src/main/webapp/js/web/msgdata/msgDataView.js
... | ... | @@ -8,6 +8,9 @@ |
| 8 | 8 |
* |
| 9 | 9 |
*/ |
| 10 | 10 |
|
| 11 |
+ |
|
| 12 |
+ |
|
| 13 |
+ |
|
| 11 | 14 |
// 문자 그룹정보 => 재전송용 |
| 12 | 15 |
function getMjMsgGroupInfoByResend() {
|
| 13 | 16 |
$.ajax({
|
... | ... | @@ -50,6 +53,8 @@ |
| 50 | 53 |
imgFilePath = []; |
| 51 | 54 |
imgFileId = []; |
| 52 | 55 |
|
| 56 |
+ console.log('msgData : ', msgData);
|
|
| 57 |
+ console.log('msgData : ', msgData);
|
|
| 53 | 58 |
// 문자제목 |
| 54 | 59 |
if (msgData.subject != null && msgData.subject != "") {
|
| 55 | 60 |
$('.msg_title').addClass('active');
|
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?