From ae288868d6e4c8a6c96b495a4c4c2e85331db37e Mon Sep 17 00:00:00 2001 From: ijunho Date: Thu, 15 May 2025 11:42:58 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itn/let/main/web/EgovMainController.java | 23 ++++++ .../webapp/WEB-INF/jsp/main/EgovMainView.jsp | 33 +++----- .../WEB-INF/jsp/main/payDayChartStats.jsp | 75 ++++++++++++------- 3 files changed, 81 insertions(+), 50 deletions(-) diff --git a/src/main/java/itn/let/main/web/EgovMainController.java b/src/main/java/itn/let/main/web/EgovMainController.java index 2ceced3..f6ca966 100644 --- a/src/main/java/itn/let/main/web/EgovMainController.java +++ b/src/main/java/itn/let/main/web/EgovMainController.java @@ -714,6 +714,19 @@ public class EgovMainController { ydayAcnt = rtnStatsVO.getYdayAcnt(); } + BoardVO boardVO = new BoardVO(); + boardVO.setFirstIndex(0); + boardVO.setRecordCountPerPage(5); + boardVO.setSearchSortCnd("frstRegisterPnttm"); + boardVO.setSearchSortOrd("desc"); + + //오늘 + int adminMainNewBoardCnt = bbsMngService.selectAdminMainNewBoardCnt(boardVO); + resultMap.put("adminMainNewBoardCnt", adminMainNewBoardCnt); + //어젝 + int adminMainYdaBoardCnt = bbsMngService.selectAdminMainYdaBoardCnt(boardVO); + resultMap.put("adminMainYdaBoardCnt", adminMainYdaBoardCnt); + resultMap.put("isSuccess", true); resultMap.put("userViewCnt", tdayUcnt); resultMap.put("adminViewCnt", tdayAcnt); @@ -919,6 +932,16 @@ public class EgovMainController { } model.addAttribute("adminPayDayChart", adminPayDayChart); + + MberManageVO mberManageTotStatsVO = new MberManageVO(); + + String statStr = conectStatsService.selectTodaySttCountString(mberManageTotStatsVO); + String[] split = statStr.split("_"); + if (split.length == 3) { + model.addAttribute("todayExpireCnt", split[0]); + model.addAttribute("todayStopCnt", split[1]); + model.addAttribute("refundRequestCnt", split[2]); + } return "main/payDayChartStats"; } diff --git a/src/main/webapp/WEB-INF/jsp/main/EgovMainView.jsp b/src/main/webapp/WEB-INF/jsp/main/EgovMainView.jsp index 216e83d..3296d41 100644 --- a/src/main/webapp/WEB-INF/jsp/main/EgovMainView.jsp +++ b/src/main/webapp/WEB-INF/jsp/main/EgovMainView.jsp @@ -88,7 +88,7 @@ //일매출액(VAT 포함) toggleLoadingMask("payDayChartBox", true); - $("#payDayChartContainer").load("/cmm/main/payDayChartStatsAjax.do", function () { + $("#payDayChartBox").load("/cmm/main/payDayChartStatsAjax.do", function () { toggleLoadingMask("payDayChartBox", false); }); @@ -180,7 +180,7 @@ dataType: "json", beforeSend: function () { // 로딩 마스크 표시 - toggleLoadingMask("visitStatBox", true); + toggleLoadingMask("visitStatInfoBox", true); }, success: function (data) { if (data.isSuccess) { @@ -188,6 +188,8 @@ $("#adminViewCnt").text(data.adminViewCnt || 0); $("#userViewCnt2").text(data.userViewCnt2 || 0); $("#userViewCnt").text(data.userViewCnt || 0); + $("#adminMainNewBoardCnt").text(data.adminMainNewBoardCnt || 0); + $("#adminMainYdaBoardCnt").text(data.adminMainYdaBoardCnt || 0); } }, error: function (xhr, status, error) { @@ -195,7 +197,7 @@ }, complete: function () { // 로딩 마스크 제거 - toggleLoadingMask("visitStatBox", false); + toggleLoadingMask("visitStatInfoBox", false); } }); } @@ -272,7 +274,7 @@ -
+
-
-

일매출액(VAT 포함)

- - - - 환불/취소 : - - - 환불/취소 : - - - - -
-
-
diff --git a/src/main/webapp/WEB-INF/jsp/main/payDayChartStats.jsp b/src/main/webapp/WEB-INF/jsp/main/payDayChartStats.jsp index e2f99ca..a85f83f 100644 --- a/src/main/webapp/WEB-INF/jsp/main/payDayChartStats.jsp +++ b/src/main/webapp/WEB-INF/jsp/main/payDayChartStats.jsp @@ -3,34 +3,51 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> - - - - - - - - - - - - - - + +
+

일매출액(VAT 포함)

+ + + + 환불/취소 : + + + 환불/취소 : + + + + +
+
+
일자결제환불합계
+ + + + + + - - - - + + + + - -
- - - () - - - - - - 일자결제환불합계
+ + + + + + + () + + + + + + + + + + + +