--- src/main/java/itn/let/kakao/user/kakaoFt/web/KakaoFriendsTalkSendController.java
+++ src/main/java/itn/let/kakao/user/kakaoFt/web/KakaoFriendsTalkSendController.java
... | ... | @@ -171,10 +171,10 @@ |
| 171 | 171 |
String chkDate = format.format(cal.getTime()); |
| 172 | 172 |
searchVO.setUserId(userId); |
| 173 | 173 |
searchVO.setMyMsgStDt(chkDate); //검색 시작일 저장 - 현재날짜로 부터 3일 이전 날짜로 시작 |
| 174 |
- model.addAttribute("resultLatestMsgList", mjonMsgDataService.selectLatestMsgList(searchVO));
|
|
| 174 |
+// model.addAttribute("resultLatestMsgList", mjonMsgDataService.selectLatestMsgList(searchVO));
|
|
| 175 | 175 |
|
| 176 | 176 |
//자주보내는 번호 |
| 177 |
- model.addAttribute("resultBookMarkMsgList", mjonMsgDataService.selectBookMarkMsgList(searchVO));
|
|
| 177 |
+// model.addAttribute("resultBookMarkMsgList", mjonMsgDataService.selectBookMarkMsgList(searchVO));
|
|
| 178 | 178 |
|
| 179 | 179 |
// 사용자 정의 단가 정보 불러오기(시스템 단가 혹은 협의 단가) |
| 180 | 180 |
model.addAttribute("sendPrice", kakaoSendUtil.selectSendPriceOfKakaoAtAndSmsAndMms(userId));
|
--- src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/ft/KakaoFriendsTalkMsgDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/ft/KakaoFriendsTalkMsgDataView.jsp
... | ... | @@ -182,7 +182,115 @@ |
| 182 | 182 |
setTimeout(() => { $(this).val(''); }, 0); // 파일 선택 초기화
|
| 183 | 183 |
} |
| 184 | 184 |
}); |
| 185 |
+ |
|
| 186 |
+ |
|
| 187 |
+ // 최근 전송내역 |
|
| 188 |
+ resultLatestMsgList(); |
|
| 189 |
+ //자주보내는 번호 |
|
| 190 |
+ resultBookMarkMsgList(); |
|
| 191 |
+ |
|
| 185 | 192 |
}); |
| 193 |
+ |
|
| 194 |
+ |
|
| 195 |
+ |
|
| 196 |
+//최근 전송내역 |
|
| 197 |
+function resultLatestMsgList(){
|
|
| 198 |
+ |
|
| 199 |
+ |
|
| 200 |
+ $.ajax({
|
|
| 201 |
+ type:"POST", |
|
| 202 |
+ url:"/web/mjon/msgdata/resultLatestMsgListAjax.do", |
|
| 203 |
+ data:{},
|
|
| 204 |
+ dataType:'json', |
|
| 205 |
+ // timeout:(1000*30), |
|
| 206 |
+ success:function(data){
|
|
| 207 |
+ console.log('resultLatestMsgList : ',data.object);
|
|
| 208 |
+ |
|
| 209 |
+ |
|
| 210 |
+ // 가져온 데이터 배열 |
|
| 211 |
+ let resultList = data.object; |
|
| 212 |
+ let $latestMsgUl = $('#latestMsgUl'); // 기존 리스트 UL
|
|
| 213 |
+ |
|
| 214 |
+ // 기존 내용을 비우기 |
|
| 215 |
+ $latestMsgUl.empty(); |
|
| 216 |
+ |
|
| 217 |
+ // 데이터가 있는 경우 |
|
| 218 |
+ if (resultList && resultList.length > 0) {
|
|
| 219 |
+ resultList.forEach(function(item, index) {
|
|
| 220 |
+ let listItem = |
|
| 221 |
+ '<li id="latestLi">' + |
|
| 222 |
+ '<input type="checkbox" id="addrChk_' + (index + 1) + '" name="latAddrChk" value="' + item.callTo + '">' + |
|
| 223 |
+ '<label for="addrChk_' + (index + 1) + '" class="label">최근 전송내역</label>' + |
|
| 224 |
+ '<p>' + item.callTo + '</p>' + |
|
| 225 |
+ '<button type="button" id="latestAddrDel">' + |
|
| 226 |
+ '<img src="/publish/images/popup/close3.png" alt="전화번호 삭제">' + |
|
| 227 |
+ '</button>' + |
|
| 228 |
+ '</li>'; |
|
| 229 |
+ |
|
| 230 |
+ $latestMsgUl.append(listItem); |
|
| 231 |
+ }); |
|
| 232 |
+ } else {
|
|
| 233 |
+ // 데이터가 없는 경우 |
|
| 234 |
+ $latestMsgUl.append('<li><p>최근 발송 내역이 없습니다.</p></li>');
|
|
| 235 |
+ } |
|
| 236 |
+ }, |
|
| 237 |
+ error:function(request , status, error){
|
|
| 238 |
+ console.log(' error ?');
|
|
| 239 |
+ console.log('request : ', request);
|
|
| 240 |
+ console.log('status : ', status);
|
|
| 241 |
+ } |
|
| 242 |
+ }); |
|
| 243 |
+} |
|
| 244 |
+ |
|
| 245 |
+//자주보내는 번호 |
|
| 246 |
+function resultBookMarkMsgList(){
|
|
| 247 |
+ |
|
| 248 |
+ $.ajax({
|
|
| 249 |
+ type:"POST", |
|
| 250 |
+ url:"/web/mjon/msgdata/resultBookMarkMsgList.do", |
|
| 251 |
+ data:{},
|
|
| 252 |
+ dataType:'json', |
|
| 253 |
+ // timeout:(1000*30), |
|
| 254 |
+ success:function(data){
|
|
| 255 |
+ console.log('resultBookMarkMsgList : ',data.object);
|
|
| 256 |
+ |
|
| 257 |
+ |
|
| 258 |
+ // 가져온 데이터 배열 |
|
| 259 |
+ let resultList = data.object; |
|
| 260 |
+ let $bookMsgUl = $('#bookMsgUl'); // 기존 리스트 UL
|
|
| 261 |
+ |
|
| 262 |
+ // 기존 내용을 비우기 |
|
| 263 |
+ $bookMsgUl.empty(); |
|
| 264 |
+ |
|
| 265 |
+ // 데이터가 있는 경우 |
|
| 266 |
+ if (resultList && resultList.length > 0) {
|
|
| 267 |
+ resultList.forEach(function(item, index) {
|
|
| 268 |
+// console.log(item.addrPhoneNo + " : " + item.addrPhoneNo); |
|
| 269 |
+ let listItem = |
|
| 270 |
+ '<li id="bookMarkLi">' + |
|
| 271 |
+ '<input type="checkbox" id="bokAddrChk_' + (index + 1) + '" name="bookAddrChk" value="' + item.addrPhoneNo + '">' + |
|
| 272 |
+ '<label for="bokAddrChk_' + (index + 1) + '" class="label">최근 전송내역</label>' + |
|
| 273 |
+// '<p>' + item.addrPhoneNo + '</p>' + |
|
| 274 |
+ '<p>' + item.addrPhoneNo + '</p>' + |
|
| 275 |
+ '<button type="button" id="bookMarkAddrDel">' + |
|
| 276 |
+ '<img src="/publish/images/popup/close3.png" alt="전화번호 삭제">' + |
|
| 277 |
+ '</button>' + |
|
| 278 |
+ '</li>'; |
|
| 279 |
+ |
|
| 280 |
+ $bookMsgUl.append(listItem); |
|
| 281 |
+ }); |
|
| 282 |
+ } else {
|
|
| 283 |
+ // 데이터가 없는 경우 |
|
| 284 |
+ $bookMsgUl.append('<li><p>등록된 자주 보내는 번호 내역이 없습니다..</p></li>');
|
|
| 285 |
+ } |
|
| 286 |
+ }, |
|
| 287 |
+ error:function(request , status, error){
|
|
| 288 |
+ console.log(' error ?');
|
|
| 289 |
+ console.log('request : ', request);
|
|
| 290 |
+ console.log('status : ', status);
|
|
| 291 |
+ } |
|
| 292 |
+ }); |
|
| 293 |
+} |
|
| 186 | 294 |
|
| 187 | 295 |
function initFormChk(){
|
| 188 | 296 |
|
... | ... | @@ -2240,6 +2348,100 @@ |
| 2240 | 2348 |
</div><!--// 엑셀 불러오기 --> |
| 2241 | 2349 |
</form> |
| 2242 | 2350 |
|
| 2351 |
+ |
|
| 2352 |
+<div class="tooltip-wrap"> |
|
| 2353 |
+ <div class="popup-com history_layer popup03" tabindex="0" |
|
| 2354 |
+ data-tooltip-con="popup03" data-focus="popup03" |
|
| 2355 |
+ data-focus-prev="popup03-close"> |
|
| 2356 |
+ <div class="popup_heading"> |
|
| 2357 |
+ <p> |
|
| 2358 |
+ 전송내역 |
|
| 2359 |
+ </p> |
|
| 2360 |
+ <button type="button" class="tooltip-close" |
|
| 2361 |
+ data-focus="popup03-close" id="btnLatestAddPhoneClose"> |
|
| 2362 |
+ <img src="/publish/images/content/layerPopup_close.png" alt="팝업 닫기"> |
|
| 2363 |
+ </button> |
|
| 2364 |
+ </div> |
|
| 2365 |
+ <div class="layer_in"> |
|
| 2366 |
+ <!-- tab button --> |
|
| 2367 |
+ <ul class="tabType6"> |
|
| 2368 |
+ <li class="tab active"><button type="button" |
|
| 2369 |
+ onclick="TabType(this,'1');">최근 전송내역</button></li> |
|
| 2370 |
+ <li class="tab"><button type="button" |
|
| 2371 |
+ onclick="TabType(this,'2');">자주보내는 번호</button></li> |
|
| 2372 |
+ </ul> |
|
| 2373 |
+ <!--// tab button --> |
|
| 2374 |
+ <!-- 최근 전송내역 --> |
|
| 2375 |
+ <div class="history_cont hascont current"> |
|
| 2376 |
+ <div class="histroy_trans latestMsgArea" id="latestMsgArea"> |
|
| 2377 |
+ <ul id="latestMsgUl"> |
|
| 2378 |
+ <%-- <c:choose> |
|
| 2379 |
+ <c:when test="${not empty resultLatestMsgList}">
|
|
| 2380 |
+ <c:forEach var="latestMsgList" items="${resultLatestMsgList}" varStatus="status">
|
|
| 2381 |
+ <li id="latestLi"> |
|
| 2382 |
+ <input type="checkbox" id="addrChk_${status.count}" name="latAddrChk" value="<c:out value='${latestMsgList.callTo}'/>">
|
|
| 2383 |
+ <label for="addrChk_${status.count}" class="label">최근 전송내역</label>
|
|
| 2384 |
+ <p><c:out value="${latestMsgList.callTo}"/></p>
|
|
| 2385 |
+ <button type="button" id="latestAddrDel"> |
|
| 2386 |
+ <img src="/publish/images/popup/close3.png" alt="전화번호 삭제"> |
|
| 2387 |
+ </button> |
|
| 2388 |
+ </li> |
|
| 2389 |
+ </c:forEach> |
|
| 2390 |
+ </c:when> |
|
| 2391 |
+ <c:otherwise> |
|
| 2392 |
+ <li> |
|
| 2393 |
+ <p>최근 발송 내역이 없습니다.</p> |
|
| 2394 |
+ </li> |
|
| 2395 |
+ </c:otherwise> |
|
| 2396 |
+ </c:choose> --%> |
|
| 2397 |
+ </ul> |
|
| 2398 |
+ </div> |
|
| 2399 |
+ <div class="popup_btn_wrap2 hisroy_btn" style="width: 230px;"> |
|
| 2400 |
+ <button type="button" id="latestAddPhoneAll">전체추가</button> |
|
| 2401 |
+ <button type="button" id="latestAddPhone">선택추가</button> |
|
| 2402 |
+ <button type="button" id="latestCancelPhone">선택취소</button> |
|
| 2403 |
+ </div> |
|
| 2404 |
+ </div> |
|
| 2405 |
+ <!--// 최근 전송내역 --> |
|
| 2406 |
+ <!-- 자주보내는 번호 --> |
|
| 2407 |
+ <div class="history_cont hascont"> |
|
| 2408 |
+ <div class="histroy_trans" id="bookMarkMsgArea"> |
|
| 2409 |
+ <ul id="bookMsgUl"> |
|
| 2410 |
+ <li> |
|
| 2411 |
+ <p>데이터 로딩중입니다.</p> |
|
| 2412 |
+ </li> |
|
| 2413 |
+ <%-- <c:choose> |
|
| 2414 |
+ <c:when test="${not empty resultBookMarkMsgList}">
|
|
| 2415 |
+ <c:forEach var="bookMarkMsgList" items="${resultBookMarkMsgList}" varStatus="status">
|
|
| 2416 |
+ <li id="bookMarkLi"> |
|
| 2417 |
+ <input type="checkbox" id="bokAddrChk_${status.count}" name="bookAddrChk" value="<c:out value='${bookMarkMsgList.addrPhoneNo}'/>">
|
|
| 2418 |
+ <label for="addrChk_${status.count}" class="label">최근 전송내역</label>
|
|
| 2419 |
+ <p><c:out value="${bookMarkMsgList.addrPhoneNo}"/></p>
|
|
| 2420 |
+ <button type="button" id="bookMarkAddrDel"><img src="/publish/images/popup/close3.png" alt="전화번호 삭제"></button> |
|
| 2421 |
+ </li> |
|
| 2422 |
+ </c:forEach> |
|
| 2423 |
+ </c:when> |
|
| 2424 |
+ <c:otherwise> |
|
| 2425 |
+ <li> |
|
| 2426 |
+ <p>등록된 자주 보내는 번호 내역이 없습니다.</p> |
|
| 2427 |
+ </li> |
|
| 2428 |
+ </c:otherwise> |
|
| 2429 |
+ </c:choose> --%> |
|
| 2430 |
+ </ul> |
|
| 2431 |
+ </div> |
|
| 2432 |
+ <div class="popup_btn_wrap2 hisroy_btn" style="width: 230px;"> |
|
| 2433 |
+ <button type="button" id="bookMarkAddPhoneAll">전체추가</button> |
|
| 2434 |
+ <button type="button" id="bookMarkAddPhone">선택추가</button> |
|
| 2435 |
+ <button type="button" id="bookMarkCancelPhone">선택취소</button> |
|
| 2436 |
+ </div> |
|
| 2437 |
+ </div> |
|
| 2438 |
+ <!--// 자주보내는 번호 --> |
|
| 2439 |
+ </div> |
|
| 2440 |
+ </div> |
|
| 2441 |
+</div> |
|
| 2442 |
+<!--// 전송내역 팝업 --> |
|
| 2443 |
+ |
|
| 2444 |
+ |
|
| 2243 | 2445 |
<form id="templateForm" name="templateForm" method="post"> |
| 2244 | 2446 |
<input type="hidden" id="friendId" name="friendId" value="<c:out value='${resultTemplateVO.friendId}'/>"/>
|
| 2245 | 2447 |
</form>(No newline at end of file) |
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?