관리자 메인 대시보드개선
This commit is contained in:
parent
1f68254688
commit
ae288868d6
@ -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";
|
||||
}
|
||||
|
||||
@ -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 @@
|
||||
</span>
|
||||
<input type="button" class="plusBtn" onclick="goMenuPage('81000000', '/uss/umt/user/EgovUserManage.do'); return false;">
|
||||
</div>
|
||||
<div class="boxCont" id="visitStatBox">
|
||||
<div class="boxCont" id="visitStatInfoBox">
|
||||
<ul class="inline">
|
||||
<li>
|
||||
<a href="#" onclick="goMenuPage('82500000', '/sym/log/clg/SelectLoginLogGroupList.do'); return false;"><div class="icon"><img src="/pb/img/dashBoardImg1.png" alt=""></div></a>
|
||||
@ -309,7 +311,12 @@
|
||||
<a href="#" onclick="goMenuPage('81800000', '/cop/bbs/SelectBbsContentsList.do'); return false;">
|
||||
<div class="icon"><img src="/pb/img/dashBoardImg3.png" alt=""></div>
|
||||
<div class="tType6 c_b4b4b4 small_text">어제/오늘</div>
|
||||
<p class="tType1 fwExtBold c_222222 large_text">${adminMainYdaBoardCnt}/<span <c:if test="${adminMainNewBoardCnt > 0}">style="color:red"</c:if>>${adminMainNewBoardCnt}</span></p>
|
||||
<%-- <p class="tType1 fwExtBold c_222222 large_text">${adminMainYdaBoardCnt}/<span <c:if test="${adminMainNewBoardCnt > 0}">style="color:red"</c:if>>${adminMainNewBoardCnt}</span></p> --%>
|
||||
<p class="tType1 fwExtBold c_222222 large_text">
|
||||
<span id="adminMainYdaBoardCnt">0</span>
|
||||
/
|
||||
<span id="adminMainNewBoardCnt">0</span>
|
||||
</p>
|
||||
<p class="tType5 c_333333 middle_text" style="padding-bottom:5px;">새 게시글</p>
|
||||
<%--<p class="tType6 c_b4b4b4">금일</p>--%>
|
||||
</a>
|
||||
@ -355,22 +362,6 @@
|
||||
</div>
|
||||
|
||||
<div class="box" id="payDayChartBox">
|
||||
<div class="boxTitle">
|
||||
<h3 class="titType2 fwBold" style="padding-right: 10px;">일매출액(VAT 포함)</h3>
|
||||
<span class="tType6 c_b4b4b4">
|
||||
<c:choose>
|
||||
<c:when test="${refundRequestCnt > 0}">
|
||||
<a href="#" onclick="goMenuPage('4550000', '/uss/ion/pay/RefundList.do'); return false;">환불/취소 : <span style="color: red; font-weight: bold;"><c:out value="${refundRequestCnt}"/></span></a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<a href="#" onclick="goMenuPage('4550000', '/uss/ion/pay/RefundList.do'); return false;">환불/취소 : <c:out value="${refundRequestCnt}"/></a>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</span>
|
||||
<input type="button" class="plusBtn" onclick="goMenuPage('5400000', '/uss/ion/pay/payDayChart.do'); return false;">
|
||||
</div>
|
||||
<div class="boxCont" id="payDayChartContainer" onclick="goMenuPage('5400000', '/uss/ion/pay/payDayChart.do'); return false;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box" id="payMonthChartBox">
|
||||
|
||||
@ -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" %>
|
||||
|
||||
<table class="tbType1" style="cursor:help !important;" border="1">
|
||||
<colgroup>
|
||||
<col style="width: *%;">
|
||||
<col style="width: 33%;">
|
||||
<col style="width: 24%;">
|
||||
<col style="width: 25%;">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td>일자</td>
|
||||
<td style="text-align: right; padding-right: 19px;">결제</td>
|
||||
<td style="text-align: right; padding-right: 10px;">환불</td>
|
||||
<td style="text-align: right; padding-right: 15px;">합계</td>
|
||||
</tr>
|
||||
<c:forEach items="${adminPayDayChart}" var="result">
|
||||
|
||||
<div class="boxTitle">
|
||||
<h3 class="titType2 fwBold" style="padding-right: 10px;">일매출액(VAT 포함)</h3>
|
||||
<span class="tType6 c_b4b4b4">
|
||||
<c:choose>
|
||||
<c:when test="${refundRequestCnt > 0}">
|
||||
<a href="#" onclick="goMenuPage('4550000', '/uss/ion/pay/RefundList.do'); return false;">환불/취소 : <span style="color: red; font-weight: bold;"><c:out value="${refundRequestCnt}"/></span></a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<a href="#" onclick="goMenuPage('4550000', '/uss/ion/pay/RefundList.do'); return false;">환불/취소 : <c:out value="${refundRequestCnt}"/></a>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</span>
|
||||
<input type="button" class="plusBtn" onclick="goMenuPage('5400000', '/uss/ion/pay/payDayChart.do'); return false;">
|
||||
</div>
|
||||
<div class="boxCont" id="payDayChartContainer" onclick="goMenuPage('5400000', '/uss/ion/pay/payDayChart.do'); return false;">
|
||||
<table class="tbType1" style="cursor:help !important;" border="1">
|
||||
<colgroup>
|
||||
<col style="width: *%;">
|
||||
<col style="width: 33%;">
|
||||
<col style="width: 24%;">
|
||||
<col style="width: 25%;">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td><c:out value="${result.regDate}" /></td>
|
||||
<td class="right c_999999">
|
||||
<fmt:formatNumber value="${result.amtTotSum + result.amtRefundSum}" pattern="#,###" />
|
||||
<c:if test="${result.amtTotCnt + result.amtRefundCnt > 0}">
|
||||
(<fmt:formatNumber value="${result.amtTotCnt + result.amtRefundCnt}" pattern="#,###" />)
|
||||
</c:if>
|
||||
</td>
|
||||
<td class="right c_999999">
|
||||
<fmt:formatNumber value="${result.amtRefundSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td class="right c_999999">
|
||||
<fmt:formatNumber value="${result.amtTotSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td>일자</td>
|
||||
<td style="text-align: right; padding-right: 19px;">결제</td>
|
||||
<td style="text-align: right; padding-right: 10px;">환불</td>
|
||||
<td style="text-align: right; padding-right: 15px;">합계</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
<c:forEach items="${adminPayDayChart}" var="result">
|
||||
<tr>
|
||||
<td><c:out value="${result.regDate}" /></td>
|
||||
<td class="right c_999999">
|
||||
<fmt:formatNumber value="${result.amtTotSum + result.amtRefundSum}" pattern="#,###" />
|
||||
<c:if test="${result.amtTotCnt + result.amtRefundCnt > 0}">
|
||||
(<fmt:formatNumber value="${result.amtTotCnt + result.amtRefundCnt}" pattern="#,###" />)
|
||||
</c:if>
|
||||
</td>
|
||||
<td class="right c_999999">
|
||||
<fmt:formatNumber value="${result.amtRefundSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td class="right c_999999">
|
||||
<fmt:formatNumber value="${result.amtTotSum}" pattern="#,###" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user