2024-03-21 14:15 마이페이지 성능개선을 위해서 이용내역 ajax로 분리 처리함
@f02d3bfd5cbb861921e9f8120aba92c62fe9cad0
--- src/main/java/itn/let/uat/uia/web/EgovMypageController.java
+++ src/main/java/itn/let/uat/uia/web/EgovMypageController.java
... | ... | @@ -293,6 +293,9 @@ |
| 293 | 293 |
model.addAttribute("mberManageVO", mberManageVO);
|
| 294 | 294 |
} |
| 295 | 295 |
|
| 296 |
+ /* |
|
| 297 |
+ * #1.로딩 문제 해결을 위해 ajax로 이전 2024-03-21 |
|
| 298 |
+ * /web/user/subcontent/mberInfo_cash_pointAjax.do |
|
| 296 | 299 |
{//캐시 정보
|
| 297 | 300 |
List<MjonPayVO> cashInfoList = mjonPayService.selectCashInfoList(userId); |
| 298 | 301 |
model.addAttribute("cashInfoList", cashInfoList);
|
... | ... | @@ -302,9 +305,15 @@ |
| 302 | 305 |
List<MjonPayVO> pointInfoList = mjonPayService.selectPointInfoList(userId); |
| 303 | 306 |
model.addAttribute("pointInfoList", pointInfoList);
|
| 304 | 307 |
} |
| 308 |
+ */ |
|
| 309 |
+ |
|
| 305 | 310 |
MjonMsgVO mjonMsgVO = new MjonMsgVO(); |
| 306 | 311 |
mjonMsgVO.setUserId(userId); |
| 307 | 312 |
|
| 313 |
+ /* |
|
| 314 |
+ * #2.로딩 문제 해결을 위해 ajax로 이전 2024-03-21 |
|
| 315 |
+ * /web/user/subcontent/mberInfo_send_reservAjax.do |
|
| 316 |
+ * |
|
| 308 | 317 |
{ // 발송건수
|
| 309 | 318 |
mjonMsgVO.setReserveYn("N");
|
| 310 | 319 |
List<MjonMsgVO> sendTotList = mjonMsgService.selectWithKakaoSendTotCnt(mjonMsgVO); |
... | ... | @@ -316,7 +325,7 @@ |
| 316 | 325 |
List<MjonMsgVO> reservToList = mjonMsgService.selectWithKakaoSendTotCnt(mjonMsgVO); |
| 317 | 326 |
model.addAttribute("reservToList", reservToList);
|
| 318 | 327 |
} |
| 319 |
- |
|
| 328 |
+ */ |
|
| 320 | 329 |
|
| 321 | 330 |
|
| 322 | 331 |
{// 충전캐시
|
... | ... | @@ -329,12 +338,14 @@ |
| 329 | 338 |
model.addAttribute("sumPoint", sumPoint);
|
| 330 | 339 |
} |
| 331 | 340 |
|
| 341 |
+ /* |
|
| 332 | 342 |
{// 총 사용금액
|
| 333 | 343 |
MjonPayVO mjonPayVO = new MjonPayVO(); |
| 334 | 344 |
mjonPayVO.setUserId(userId); |
| 335 | 345 |
List<MjonPayVO> usedCashTotList = mjonPayService.selectUsedCashWithKakaoTotCnt(mjonPayVO); |
| 336 | 346 |
model.addAttribute("usedCashTotList", usedCashTotList);
|
| 337 | 347 |
} |
| 348 |
+ */ |
|
| 338 | 349 |
|
| 339 | 350 |
{// 사용가능한 금액
|
| 340 | 351 |
MberManageVO mberManageVO = mjonMsgDataService.selectMberManageInfo(userId); |
... | ... | @@ -437,6 +448,75 @@ |
| 437 | 448 |
return "web/user/mberInfoIndex"; |
| 438 | 449 |
} |
| 439 | 450 |
|
| 451 |
+ /** |
|
| 452 |
+ * 마이페이지 - 이용내역 - ajax |
|
| 453 |
+ * @param mjonMsgVO |
|
| 454 |
+ * @param model |
|
| 455 |
+ * @return "/web/member/pay/PayUserListAjax.do" |
|
| 456 |
+ * @throws Exception |
|
| 457 |
+ */ |
|
| 458 |
+ @RequestMapping(value="/web/user/subcontent/mberInfo_cash_pointAjax.do") |
|
| 459 |
+ public String mberInfo_cash_pointAjax(@ModelAttribute("searchVO") MjonMsgVO mjonMsgVO,
|
|
| 460 |
+ HttpServletRequest request, |
|
| 461 |
+ ModelMap model) throws Exception{
|
|
| 462 |
+ |
|
| 463 |
+ System.out.println("mberInfo_cash_pointAjax");
|
|
| 464 |
+ |
|
| 465 |
+ LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 466 |
+ String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
|
| 467 |
+ |
|
| 468 |
+ |
|
| 469 |
+ {//캐시 정보
|
|
| 470 |
+ List<MjonPayVO> cashInfoList = mjonPayService.selectCashInfoList(userId); |
|
| 471 |
+ model.addAttribute("cashInfoList", cashInfoList);
|
|
| 472 |
+ } |
|
| 473 |
+ |
|
| 474 |
+ {//포인트 정보
|
|
| 475 |
+ List<MjonPayVO> pointInfoList = mjonPayService.selectPointInfoList(userId); |
|
| 476 |
+ model.addAttribute("pointInfoList", pointInfoList);
|
|
| 477 |
+ } |
|
| 478 |
+ |
|
| 479 |
+ System.out.println("mberInfo_cash_pointAjax_end");
|
|
| 480 |
+ |
|
| 481 |
+ return "/web/user/subcontent/mberInfo_cash_pointAjax"; |
|
| 482 |
+ } |
|
| 483 |
+ |
|
| 484 |
+ /** |
|
| 485 |
+ * 마이페이지 - 이용내역 - 발송건수/예약건수 ajax |
|
| 486 |
+ * @param mjonMsgVO |
|
| 487 |
+ * @param model |
|
| 488 |
+ * @return "/web/member/pay/PayUserListAjax.do" |
|
| 489 |
+ * @throws Exception |
|
| 490 |
+ */ |
|
| 491 |
+ @RequestMapping(value="/web/user/subcontent/mberInfo_send_reservAjax.do") |
|
| 492 |
+ public String mberInfo_send_reservAjax( |
|
| 493 |
+ HttpServletRequest request, |
|
| 494 |
+ ModelMap model) throws Exception{
|
|
| 495 |
+ |
|
| 496 |
+ System.out.println("mberInfo_cash_pointAjax");
|
|
| 497 |
+ |
|
| 498 |
+ LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 499 |
+ String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId()); |
|
| 500 |
+ |
|
| 501 |
+ MjonMsgVO mjonMsgVO = new MjonMsgVO(); |
|
| 502 |
+ mjonMsgVO.setUserId(userId); |
|
| 503 |
+ |
|
| 504 |
+ { // 발송건수
|
|
| 505 |
+ mjonMsgVO.setReserveYn("N");
|
|
| 506 |
+ List<MjonMsgVO> sendTotList = mjonMsgService.selectWithKakaoSendTotCnt(mjonMsgVO); |
|
| 507 |
+ model.addAttribute("sendTotList", sendTotList);
|
|
| 508 |
+ } |
|
| 509 |
+ |
|
| 510 |
+ { // 예약건수
|
|
| 511 |
+ mjonMsgVO.setReserveYn("Y");
|
|
| 512 |
+ List<MjonMsgVO> reservToList = mjonMsgService.selectWithKakaoSendTotCnt(mjonMsgVO); |
|
| 513 |
+ model.addAttribute("reservToList", reservToList);
|
|
| 514 |
+ } |
|
| 515 |
+ |
|
| 516 |
+ System.out.println("mberInfo_cash_pointAjax_end");
|
|
| 517 |
+ |
|
| 518 |
+ return "/web/user/subcontent/mberInfo_send_reservAjax"; |
|
| 519 |
+ } |
|
| 440 | 520 |
|
| 441 | 521 |
//발송문자 건수 계산하는 함수 |
| 442 | 522 |
public String[] getTotalSendCnt(List<MjonMsgSentVO> mjonMsgSentVO) {
|
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
... | ... | @@ -6605,6 +6605,7 @@ |
| 6605 | 6605 |
|
| 6606 | 6606 |
<!-- 사용자 총 사용금액 조회(카카오 테스트용) --> |
| 6607 | 6607 |
<select id="mjonMsgDAO.selectWithKakaoSendTotCnt" parameterClass="mjonMsgVO" resultClass="mjonMsgVO"> |
| 6608 |
+ /* mjonMsgDAO.selectWithKakaoSendTotCnt */ |
|
| 6608 | 6609 |
WITH TBL AS |
| 6609 | 6610 |
( |
| 6610 | 6611 |
SELECT |
--- src/main/resources/egovframework/sqlmap/let/pay/MjonPay_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/pay/MjonPay_SQL_mysql.xml
... | ... | @@ -2149,6 +2149,7 @@ |
| 2149 | 2149 |
</select> |
| 2150 | 2150 |
|
| 2151 | 2151 |
<select id="mjonPayDAO.selectUsedCashWithKakaoTotCnt" parameterClass="mjonPayVO" resultClass="mjonPayVO"> |
| 2152 |
+ /* mjonPayDAO.selectUsedCashWithKakaoTotCnt */ |
|
| 2152 | 2153 |
SELECT |
| 2153 | 2154 |
'CASH' AS divFlag |
| 2154 | 2155 |
, ifnull(ROUND(SUM(M.eachPrice) + (SUM(M.totalPrice) * 0), 2), 0) AS totalPrice |
--- src/main/webapp/WEB-INF/jsp/web/user/mberInfoIndex.jsp
+++ src/main/webapp/WEB-INF/jsp/web/user/mberInfoIndex.jsp
... | ... | @@ -40,6 +40,11 @@ |
| 40 | 40 |
|
| 41 | 41 |
thisYearStart = date.getFullYear() + "/01/01" ; |
| 42 | 42 |
thisYearEnd = date.getFullYear() + "/12/31" ; |
| 43 |
+ |
|
| 44 |
+ //이용내역 loading |
|
| 45 |
+ subContent(); //이용내역 총금액 |
|
| 46 |
+ |
|
| 47 |
+ subContentSendReserv(); //발송,예약건수 |
|
| 43 | 48 |
}); |
| 44 | 49 |
|
| 45 | 50 |
//기간 요일 지정 |
... | ... | @@ -66,6 +71,76 @@ |
| 66 | 71 |
$("#payUserListLoad").load("/web/member/pay/PayUserWithKakaoListAjax.do", sendData ,function(response, status, xhr){
|
| 67 | 72 |
$("#statementTap").css('display', 'none');
|
| 68 | 73 |
}); |
| 74 |
+} |
|
| 75 |
+ |
|
| 76 |
+//마이페이지 - 세부내역 |
|
| 77 |
+function subContent(p_content_no){
|
|
| 78 |
+ |
|
| 79 |
+ var sendData = $(document.listForm).serializeArray(); |
|
| 80 |
+ var v_html_pre = '<table>' |
|
| 81 |
+ + '<caption>구분, 충전금액, 사용금액, 잔액 등 정보를 제공하는 표</caption>' |
|
| 82 |
+ + '<colgroup>' |
|
| 83 |
+ + '<col style="width: 115px;">' |
|
| 84 |
+ + '<col style="width: calc((100% - 115px)/3);">' |
|
| 85 |
+ + '<col style="width: calc((100% - 115px)/3);">' |
|
| 86 |
+ + '<col style="width: calc((100% - 115px)/3);">' |
|
| 87 |
+ + '</colgroup>' |
|
| 88 |
+ + '<thead>' |
|
| 89 |
+ + '<tr>' |
|
| 90 |
+ + '<th scope="col">구분</th>' |
|
| 91 |
+ + '<th scope="col">충전금액</th>' |
|
| 92 |
+ + '<th scope="col">사용금액</th>' |
|
| 93 |
+ + '<th scope="col">잔액</th>' |
|
| 94 |
+ + '</tr>' |
|
| 95 |
+ + '</thead>' |
|
| 96 |
+ + '<tbody>' |
|
| 97 |
+ + '<tr><td colspan="4">LOADING...</td></tr>' |
|
| 98 |
+ + '</tbody>' |
|
| 99 |
+ + '</table>'; |
|
| 100 |
+ //$("#prePaymentYn_Y").html('<div class="list_info"><table class="tType4"><tbody><tr><td colspan="12">LOADING...</td></tr></tbody></table></div>');
|
|
| 101 |
+ $("#prePaymentYn_Y").html(v_html_pre);
|
|
| 102 |
+ |
|
| 103 |
+ |
|
| 104 |
+ |
|
| 105 |
+ $("#prePaymentYn_Y").load("/web/user/subcontent/mberInfo_cash_pointAjax.do", sendData ,function(response, status, xhr){
|
|
| 106 |
+ }); |
|
| 107 |
+ |
|
| 108 |
+} |
|
| 109 |
+ |
|
| 110 |
+//마이페이지 - 세부내역 - 발송/예약건수 |
|
| 111 |
+function subContentSendReserv(p_content_no){
|
|
| 112 |
+ |
|
| 113 |
+ var sendData = $(document.listForm).serializeArray(); |
|
| 114 |
+ var v_html_pre = '<table>' |
|
| 115 |
+ + '<caption>구분, 문자, 알림톡, 친구톡, 팩스, 계 등 정보를 제공하는 표</caption>' |
|
| 116 |
+ + '<colgroup>' |
|
| 117 |
+ + '<col style="width: calc(100% / 5);">' |
|
| 118 |
+ + '<col style="width: calc(100% / 5);">' |
|
| 119 |
+ + '<col style="width: calc(100% / 5);">' |
|
| 120 |
+ + '<col style="width: calc(100% / 5);">' |
|
| 121 |
+ + '<col style="width: calc(100% / 5);">' |
|
| 122 |
+ + '</colgroup>' |
|
| 123 |
+ + '<thead>' |
|
| 124 |
+ + '<tr>' |
|
| 125 |
+ + '<th scope="col">구분</th>' |
|
| 126 |
+ + '<th scope="col">문자</th>' |
|
| 127 |
+ + '<th scope="col">알림톡</th>' |
|
| 128 |
+ + '<th scope="col">팩스</th>' |
|
| 129 |
+ + '<th scope="col">계</th>' |
|
| 130 |
+ + '</tr>' |
|
| 131 |
+ + '</thead>' |
|
| 132 |
+ + '<tbody>' |
|
| 133 |
+ + '<tr><td colspan="5">LOADING...</td></tr>' |
|
| 134 |
+ + '</tbody>' |
|
| 135 |
+ + '</table>'; |
|
| 136 |
+ //$("#prePaymentYn_Y").html('<div class="list_info"><table class="tType4"><tbody><tr><td colspan="12">LOADING...</td></tr></tbody></table></div>');
|
|
| 137 |
+ $("#send_reserv").html(v_html_pre);
|
|
| 138 |
+ |
|
| 139 |
+ |
|
| 140 |
+ |
|
| 141 |
+ $("#send_reserv").load("/web/user/subcontent/mberInfo_send_reservAjax.do", sendData ,function(response, status, xhr){
|
|
| 142 |
+ }); |
|
| 143 |
+ |
|
| 69 | 144 |
} |
| 70 | 145 |
|
| 71 | 146 |
//[문자]상세보기 버튼 실행 |
... | ... | @@ -370,43 +445,8 @@ |
| 370 | 445 |
<c:choose> |
| 371 | 446 |
<c:when test="${mberManageVO.prePaymentYn eq 'Y'}">
|
| 372 | 447 |
<p class="reqTxt2">(단위 : 건, 원)</p> |
| 373 |
- <div class="table_wrap"> |
|
| 374 |
- <table> |
|
| 375 |
- <caption>구분, 충전금액, 사용금액, 잔액 등 정보를 제공하는 표</caption> |
|
| 376 |
- <colgroup> |
|
| 377 |
- <col style="width: 115px;"> |
|
| 378 |
- <col style="width: calc((100% - 115px)/3);"> |
|
| 379 |
- <col style="width: calc((100% - 115px)/3);"> |
|
| 380 |
- <col style="width: calc((100% - 115px)/3);"> |
|
| 381 |
- </colgroup> |
|
| 382 |
- <thead> |
|
| 383 |
- <tr> |
|
| 384 |
- <th scope="col">구분</th> |
|
| 385 |
- <th scope="col">충전금액</th> |
|
| 386 |
- <th scope="col">사용금액</th> |
|
| 387 |
- <th scope="col">잔액</th> |
|
| 388 |
- </tr> |
|
| 389 |
- </thead> |
|
| 390 |
- <tbody> |
|
| 391 |
- <tr> |
|
| 392 |
- <td>캐시</td> |
|
| 393 |
- <c:forEach var="cashInfo" items="${cashInfoList}" varStatus="status">
|
|
| 394 |
- <td> |
|
| 395 |
- <fmt:formatNumber value="${cashInfo.cashSum}" pattern="" />
|
|
| 396 |
- </td> |
|
| 397 |
- </c:forEach> |
|
| 398 |
- </tr> |
|
| 399 |
- <tr> |
|
| 400 |
- <td>포인트</td> |
|
| 401 |
- <c:forEach var="pointInfo" items="${pointInfoList}" varStatus="status">
|
|
| 402 |
- <td> |
|
| 403 |
- <fmt:formatNumber value="${pointInfo.sumPay}" pattern="" />
|
|
| 404 |
- </td> |
|
| 405 |
- </c:forEach> |
|
| 406 |
- </tr> |
|
| 407 |
- </tbody> |
|
| 408 |
- </table> |
|
| 409 |
- </div> |
|
| 448 |
+ <div class="table_wrap" id="prePaymentYn_Y"> |
|
| 449 |
+ </div> |
|
| 410 | 450 |
</c:when> |
| 411 | 451 |
<c:otherwise> |
| 412 | 452 |
<p class="reqTxt2">(단위 : 건, 원) VAT 별도</p> |
... | ... | @@ -487,61 +527,8 @@ |
| 487 | 527 |
<button type="button" onclick="location.href='/web/member/pay/PayUserSWList.do';"> |
| 488 | 528 |
<img src="/publish/images/content/mypage_plus.png" alt="더보기"> |
| 489 | 529 |
</button> |
| 490 |
- <div class="table_wrap"> |
|
| 491 |
- <table> |
|
| 492 |
- <caption>구분, 문자, 알림톡, 친구톡, 팩스, 계 등 정보를 제공하는 표</caption> |
|
| 493 |
- <colgroup> |
|
| 494 |
- <col style="width: calc(100% / 5);"> |
|
| 495 |
- <col style="width: calc(100% / 5);"> |
|
| 496 |
- <col style="width: calc(100% / 5);"> |
|
| 497 |
- <col style="width: calc(100% / 5);"> |
|
| 498 |
- <col style="width: calc(100% / 5);"> |
|
| 499 |
- </colgroup> |
|
| 500 |
- <thead> |
|
| 501 |
- <tr> |
|
| 502 |
- <th scope="col">구분</th> |
|
| 503 |
- <th scope="col">문자</th> |
|
| 504 |
- <th scope="col">알림톡</th> |
|
| 505 |
- <th scope="col">팩스</th> |
|
| 506 |
- <th scope="col">계</th> |
|
| 507 |
- </tr> |
|
| 508 |
- </thead> |
|
| 509 |
- <tbody> |
|
| 510 |
- <tr> |
|
| 511 |
- <td>발송건(매)수</td> |
|
| 512 |
- <c:set var="sandSum" value="0"/> |
|
| 513 |
- <c:forEach var="sendToInfo" items="${sendTotList}" varStatus="status">
|
|
| 514 |
- <td> |
|
| 515 |
- <fmt:formatNumber value="${sendToInfo.totCnt}" pattern="" />
|
|
| 516 |
- <c:if test="${sendToInfo.msgType eq 'fax' && sendToInfo.fileCnt ne '0'}">
|
|
| 517 |
- (<c:out value="${sendToInfo.fileCnt }"/>)
|
|
| 518 |
- </c:if> |
|
| 519 |
- </td> |
|
| 520 |
- <c:set var="sandSum" value="${sandSum + sendToInfo.totCnt}"/>
|
|
| 521 |
- </c:forEach> |
|
| 522 |
- <td> |
|
| 523 |
- <fmt:formatNumber value="${sandSum}" pattern="" />
|
|
| 524 |
- </td> |
|
| 525 |
- </tr> |
|
| 526 |
- <tr> |
|
| 527 |
- <td>예약건(매)수</td> |
|
| 528 |
- <c:set var="reservSum" value="0"/> |
|
| 529 |
- <c:forEach var="reservToInfo" items="${reservToList}" varStatus="status">
|
|
| 530 |
- <td> |
|
| 531 |
- <fmt:formatNumber value="${reservToInfo.totCnt}" pattern="" />
|
|
| 532 |
- <c:if test="${reservToInfo.msgType eq 'fax' && reservToInfo.fileCnt ne '0'}">
|
|
| 533 |
- (<c:out value="${reservToInfo.fileCnt }"/>)
|
|
| 534 |
- </c:if> |
|
| 535 |
- </td> |
|
| 536 |
- <c:set var="reservSum" value="${reservSum + reservToInfo.totCnt}"/>
|
|
| 537 |
- </c:forEach> |
|
| 538 |
- <td> |
|
| 539 |
- <fmt:formatNumber value="${reservSum}" pattern="" />
|
|
| 540 |
- </td> |
|
| 541 |
- </tr> |
|
| 542 |
- </tbody> |
|
| 543 |
- </table> |
|
| 544 |
- </div> |
|
| 530 |
+ <div class="table_wrap" id="send_reserv"> |
|
| 531 |
+ </div> |
|
| 545 | 532 |
</div> |
| 546 | 533 |
<p class="tType1_title"> |
| 547 | 534 |
<img src="/publish/images/content/icon_details_breakdown.png" alt="알림톡 아이콘 이미지">세부내역 |
+++ src/main/webapp/WEB-INF/jsp/web/user/subcontent/mberInfo_cash_pointAjax.jsp
... | ... | @@ -0,0 +1,61 @@ |
| 1 | +<%-- | |
| 2 | + Class Name : mberInfo_cash_point.jsp | |
| 3 | + Description : 마이페이지 - 이용내역 캐시&포인트 | |
| 4 | + Modification Information | |
| 5 | + | |
| 6 | + 수정일 수정자 수정내용 | |
| 7 | + ------- -------- --------------------------- | |
| 8 | + 2021.03.31 신명섭 최초 생성 | |
| 9 | + | |
| 10 | + Copyright (C) 2009 by ITN All right reserved. | |
| 11 | +--%> | |
| 12 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 13 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 14 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 15 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 16 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 17 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 18 | +<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%> | |
| 19 | + | |
| 20 | +<script src="/publish/js/content.js"></script> | |
| 21 | +<script> | |
| 22 | +$(document).ready(function(){ | |
| 23 | + | |
| 24 | +}); | |
| 25 | + | |
| 26 | +</script> | |
| 27 | + <table> | |
| 28 | + <caption>구분, 충전금액, 사용금액, 잔액 등 정보를 제공하는 표</caption> | |
| 29 | + <colgroup> | |
| 30 | + <col style="width: 115px;"> | |
| 31 | + <col style="width: calc((100% - 115px)/3);"> | |
| 32 | + <col style="width: calc((100% - 115px)/3);"> | |
| 33 | + <col style="width: calc((100% - 115px)/3);"> | |
| 34 | + </colgroup> | |
| 35 | + <thead> | |
| 36 | + <tr> | |
| 37 | + <th scope="col">구분</th> | |
| 38 | + <th scope="col">충전금액</th> | |
| 39 | + <th scope="col">사용금액</th> | |
| 40 | + <th scope="col">잔액</th> | |
| 41 | + </tr> | |
| 42 | + </thead> | |
| 43 | + <tbody> | |
| 44 | + <tr> | |
| 45 | + <td>캐시</td> | |
| 46 | + <c:forEach var="cashInfo" items="${cashInfoList}" varStatus="status"> | |
| 47 | + <td> | |
| 48 | + <fmt:formatNumber value="${cashInfo.cashSum}" pattern="" /> | |
| 49 | + </td> | |
| 50 | + </c:forEach> | |
| 51 | + </tr> | |
| 52 | + <tr> | |
| 53 | + <td>포인트</td> | |
| 54 | + <c:forEach var="pointInfo" items="${pointInfoList}" varStatus="status"> | |
| 55 | + <td> | |
| 56 | + <fmt:formatNumber value="${pointInfo.sumPay}" pattern="" /> | |
| 57 | + </td> | |
| 58 | + </c:forEach> | |
| 59 | + </tr> | |
| 60 | + </tbody> | |
| 61 | + </table>(No newline at end of file) |
+++ src/main/webapp/WEB-INF/jsp/web/user/subcontent/mberInfo_send_reservAjax.jsp
... | ... | @@ -0,0 +1,79 @@ |
| 1 | +<%-- | |
| 2 | + Class Name : mberInfo_cash_point.jsp | |
| 3 | + Description : 마이페이지 - 이용내역 캐시&포인트 | |
| 4 | + Modification Information | |
| 5 | + | |
| 6 | + 수정일 수정자 수정내용 | |
| 7 | + ------- -------- --------------------------- | |
| 8 | + 2021.03.31 신명섭 최초 생성 | |
| 9 | + | |
| 10 | + Copyright (C) 2009 by ITN All right reserved. | |
| 11 | +--%> | |
| 12 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 13 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 14 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 15 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 16 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 17 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 18 | +<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%> | |
| 19 | + | |
| 20 | +<script src="/publish/js/content.js"></script> | |
| 21 | +<script> | |
| 22 | +$(document).ready(function(){ | |
| 23 | + | |
| 24 | +}); | |
| 25 | + | |
| 26 | +</script> | |
| 27 | + <table> | |
| 28 | + <caption>구분, 문자, 알림톡, 친구톡, 팩스, 계 등 정보를 제공하는 표</caption> | |
| 29 | + <colgroup> | |
| 30 | + <col style="width: calc(100% / 5);"> | |
| 31 | + <col style="width: calc(100% / 5);"> | |
| 32 | + <col style="width: calc(100% / 5);"> | |
| 33 | + <col style="width: calc(100% / 5);"> | |
| 34 | + <col style="width: calc(100% / 5);"> | |
| 35 | + </colgroup> | |
| 36 | + <thead> | |
| 37 | + <tr> | |
| 38 | + <th scope="col">구분</th> | |
| 39 | + <th scope="col">문자</th> | |
| 40 | + <th scope="col">알림톡</th> | |
| 41 | + <th scope="col">팩스</th> | |
| 42 | + <th scope="col">계</th> | |
| 43 | + </tr> | |
| 44 | + </thead> | |
| 45 | + <tbody> | |
| 46 | + <tr> | |
| 47 | + <td>발송건(매)수</td> | |
| 48 | + <c:set var="sandSum" value="0"/> | |
| 49 | + <c:forEach var="sendToInfo" items="${sendTotList}" varStatus="status"> | |
| 50 | + <td> | |
| 51 | + <fmt:formatNumber value="${sendToInfo.totCnt}" pattern="" /> | |
| 52 | + <c:if test="${sendToInfo.msgType eq 'fax' && sendToInfo.fileCnt ne '0'}"> | |
| 53 | + (<c:out value="${sendToInfo.fileCnt }"/>) | |
| 54 | + </c:if> | |
| 55 | + </td> | |
| 56 | + <c:set var="sandSum" value="${sandSum + sendToInfo.totCnt}"/> | |
| 57 | + </c:forEach> | |
| 58 | + <td> | |
| 59 | + <fmt:formatNumber value="${sandSum}" pattern="" /> | |
| 60 | + </td> | |
| 61 | + </tr> | |
| 62 | + <tr> | |
| 63 | + <td>예약건(매)수</td> | |
| 64 | + <c:set var="reservSum" value="0"/> | |
| 65 | + <c:forEach var="reservToInfo" items="${reservToList}" varStatus="status"> | |
| 66 | + <td> | |
| 67 | + <fmt:formatNumber value="${reservToInfo.totCnt}" pattern="" /> | |
| 68 | + <c:if test="${reservToInfo.msgType eq 'fax' && reservToInfo.fileCnt ne '0'}"> | |
| 69 | + (<c:out value="${reservToInfo.fileCnt }"/>) | |
| 70 | + </c:if> | |
| 71 | + </td> | |
| 72 | + <c:set var="reservSum" value="${reservSum + reservToInfo.totCnt}"/> | |
| 73 | + </c:forEach> | |
| 74 | + <td> | |
| 75 | + <fmt:formatNumber value="${reservSum}" pattern="" /> | |
| 76 | + </td> | |
| 77 | + </tr> | |
| 78 | + </tbody> | |
| 79 | + </table>(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?