초기소스
This commit is contained in:
@@ -0,0 +1,234 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<%-- 공통 include --%>
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Include.jsp" %>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
fn_set_dateRange_function('#dataRangeBtn', 'srchStrtSndngDt','srchEndSndngDt', 'srchEndSndngDt');
|
||||
fn_set_date('srchStrtSndngDt', 'srchEndSndngDt','srchEndSndngDt', '7D');
|
||||
|
||||
// 표 조회
|
||||
fn_select_table_data(null, null);
|
||||
|
||||
// 날짜 검색
|
||||
$("#srchBtn").on("click", function(){
|
||||
fn_select_table_data(null, null);
|
||||
});
|
||||
|
||||
|
||||
// 표
|
||||
// $("#").on("click", function() {
|
||||
// fn_select_table_data(null, '', 'coupNm', 'ASC');
|
||||
// });
|
||||
|
||||
// 페이징 제자리 새로고침(Submit) 방지
|
||||
$('body').on('click', 'button.pagination__item.active', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* 테이블 데이터 조회
|
||||
* pageIndex
|
||||
* unitFlag
|
||||
* - 없음 : ''
|
||||
*
|
||||
* ordrStand
|
||||
* - fn_select_ordrStandMapping() 참조
|
||||
*
|
||||
* ordrType
|
||||
* - 오름차순 : 'ASC'
|
||||
* - 내림차순 : 'DESC'
|
||||
*/
|
||||
let PordrStand;
|
||||
let TordrType;
|
||||
const fn_select_table_data = function(pageIndex, unitFlag, ordrStand, ordrType) {
|
||||
// console.log("fn_select_table_data() sopmalCd : ", sopmalCdFlag);
|
||||
|
||||
const srchStrtSndngDt = $("#srchStrtSndngDt").val();
|
||||
const srchEndSndngDt = $("#srchEndSndngDt").val();
|
||||
const sopmalCdFlag = $('#select_box').val();
|
||||
const pageUnit = $("#pageUnit").val();
|
||||
const recordCountPerPage = '50';
|
||||
|
||||
if(!pageIndex) {
|
||||
$('#pageIndex').val(1);
|
||||
} else {
|
||||
$('#pageIndex').val(pageIndex);
|
||||
}
|
||||
const pageIndexValue = $("#pageIndex").val();
|
||||
|
||||
if(!unitFlag) {
|
||||
// if ($('#').hasClass('selected')) {
|
||||
unitFlag = '';
|
||||
// }
|
||||
}
|
||||
|
||||
if(!pageIndex){
|
||||
if (!ordrType && PordrStand == ordrStand) {
|
||||
//정렬 방식 변경 (정렬 기준 파라미터가 이전과 동일)
|
||||
TordrType = (TordrType == 'ASC') ? 'DESC' : 'ASC';
|
||||
}else if(!ordrType){
|
||||
//정렬 방식 기본값으로 지정 (정렬 기준 변경)
|
||||
TordrType = 'ASC';
|
||||
}else{
|
||||
//정렬 방식 초기화 (표 조회)
|
||||
TordrType = ordrType;
|
||||
}
|
||||
|
||||
if(!ordrStand){
|
||||
//정렬 기준 기본값으로 지정
|
||||
PordrStand = 'couponNm';
|
||||
}else{
|
||||
//정렬 기준 변경
|
||||
PordrStand = ordrStand;
|
||||
}
|
||||
}
|
||||
|
||||
const data = {
|
||||
srchStrtSndngDt : srchStrtSndngDt,
|
||||
srchEndSndngDt : srchEndSndngDt,
|
||||
sopmalCd : sopmalCdFlag,
|
||||
unitFlag : unitFlag,
|
||||
pageUnit : pageUnit,
|
||||
ordrStand : PordrStand,
|
||||
ordrType : TordrType,
|
||||
pageIndex : pageIndexValue,
|
||||
recordCountPerPage : recordCountPerPage
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url : "/admin/stats/marktAnals/selectAdminMbrNdMlgStatsTableInqire",
|
||||
data : data,
|
||||
success:function(resultHtml) {
|
||||
// console.log('success');
|
||||
$('#pageDiv').empty();
|
||||
$('#pageDiv').html(resultHtml);
|
||||
|
||||
// $('.reorder_' + PordrStand).text(fn_select_ordrStandMapping()[PordrStand] + (TordrType === 'ASC' ? ' ▲' : ' ▼'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 테이블 정렬 조건(행)
|
||||
*/
|
||||
const fn_select_ordrStandMapping = function() {
|
||||
let ordrStandMapping;
|
||||
|
||||
ordrStandMapping = {
|
||||
'couponNm': '쿠폰명',
|
||||
'couponDv': '쿠폰구분',
|
||||
'discountAmt': '쿠폰할인금액',
|
||||
'couponDwldCnt': '발급건수',
|
||||
'couponUseCnt': '사용건수(중복)',
|
||||
'couponUseDcnt': '사용건수'
|
||||
};
|
||||
|
||||
return ordrStandMapping;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Header.jsp" %>
|
||||
|
||||
<main class="main">
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Left.jsp" %>
|
||||
|
||||
<div class="content">
|
||||
<div class="content__inner">
|
||||
|
||||
<input type="hidden" id="pageIndex" value="${ resultMap.pageIndex }"/>
|
||||
<input type="hidden" id="pageUnit" value="${ resultMap.pageUnit }"/>
|
||||
|
||||
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||
<div class="page-title">
|
||||
<h3 class="page-title__title">회원 및 마일리지</h3>
|
||||
</div>
|
||||
|
||||
<section class="content-section">
|
||||
|
||||
<div class="table-wrapper">
|
||||
<table class="table dashboardSearch">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색조건</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="datepicker"
|
||||
id="srchStrtSndngDt" name="srchStrtSndngDt" title="시작 날짜 선택"
|
||||
autocomplete="off">
|
||||
<span class="tilde">~</span>
|
||||
<input type="text" class="datepicker"
|
||||
id="srchEndSndngDt" name="srchEndSndngDt" title="종료 날짜 선택"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
<div class="dateRange-btnContainer" id="dataRangeBtn">
|
||||
<button type="button" class="dateRange-btn" id="yesterday">어제</button>
|
||||
<button type="button" class="dateRange-btn" id="today" >오늘</button>
|
||||
<button type="button" class="dateRange-btn" id="threeDays">3일간</button>
|
||||
<button type="button" class="dateRange-btn selected" id="sevenDays">일주일</button>
|
||||
<button type="button" class="dateRange-btn" id="oneMonth">1개월</button>
|
||||
<button type="button" class="dateRange-btn" id="threeMonth">3개월</button>
|
||||
<button type="button" class="dateRange-btn" id="sixMonth">6개월</button>
|
||||
<button type="button" class="dateRange-btn" id="year">1년</button>
|
||||
</div>
|
||||
<button class="btn sm primary ml-5" type="button" id="srchBtn">검색</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-wrapper">
|
||||
<table class="table dashboardSearch">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
<select id="select_box" title="" onchange="fn_select_table_data(null, null)">
|
||||
<c:forEach items="${ cond.resultList }" var="list" varStatus="status">
|
||||
<option value="${ list.sopmalCd }"> ${ list.sopmalNm } </option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="pageDiv">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,79 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// $('th[class^="reorder_"]').click(function() {
|
||||
// var className = $(this).attr('class');
|
||||
// var ordrStand = className.replace('reorder_', '');
|
||||
// fn_select_table_data(null, null, ordrStand);
|
||||
// });
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
/*th[class^="reorder_"] {*/
|
||||
/* cursor: pointer;*/
|
||||
/*}*/
|
||||
</style>
|
||||
<section class="content-section">
|
||||
|
||||
<table class="table vertical">
|
||||
<caption>해당 테이블에 대한 설명</caption>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<thead id="tableHeader">
|
||||
<tr>
|
||||
<th class="reorder_t">gubun</th>
|
||||
<th class="reorder_t">union_cust_cnt</th>
|
||||
<th class="reorder_t">NC_CU_CNT</th>
|
||||
<th class="reorder_t">CH_CU_CNT</th>
|
||||
<th class="reorder_t">TZ_CU_CNT</th>
|
||||
<th class="reorder_t">PL_CU_CNT</th>
|
||||
<th class="reorder_t">NB_CU_CNT</th>
|
||||
<th class="reorder_t">DT_CU_CNT</th>
|
||||
<th class="reorder_t">DL_CU_CNT</th>
|
||||
<th class="reorder_t">AF_CU_CNT</th>
|
||||
<th class="reorder_t">BD_CU_CNT</th>
|
||||
<th class="reorder_t">LF_CU_CNT</th>
|
||||
<th class="reorder_t">JM_CU_CNT</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableBody">
|
||||
<c:if test="${ empty resultMap.resultList }">
|
||||
<tr>
|
||||
<td class="row-no-data" colspan="20">조회된 데이터가 없습니다.</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
|
||||
<c:forEach items="${ resultMap.resultList }" var="list" varStatus="status">
|
||||
<tr>
|
||||
<td>${ list.gubun }</td>
|
||||
<td>${ list.unionCustCnt }</td>
|
||||
<td>${ list.ncCuCnt }</td>
|
||||
<td>${ list.chCuCnt }</td>
|
||||
<td>${ list.tzCuCnt }</td>
|
||||
<td>${ list.plCuCnt }</td>
|
||||
<td>${ list.nbCuCnt }</td>
|
||||
<td>${ list.dtCuCnt }</td>
|
||||
<td>${ list.dlCuCnt }</td>
|
||||
<td>${ list.afCuCnt }</td>
|
||||
<td>${ list.bdCuCnt }</td>
|
||||
<td>${ list.lfCuCnt }</td>
|
||||
<td>${ list.jmCuCnt }</td>
|
||||
<%-- <td><fmt:formatNumber value="${ list.slepricSum }" pattern="#,###"/></td>--%>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</section>
|
||||
|
||||
<%--<div class="pagination__container">--%>
|
||||
<%-- <ui:pagination paginationInfo="${ resultMap.paginationInfo }" type="image" jsFunction="fn_select_table_data" />--%>
|
||||
<%--</div>--%>
|
||||
@@ -0,0 +1,118 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<%-- 공통 include --%>
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Include.jsp" %>
|
||||
</head>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
fn_set_dateRange_function('#dataRangeBtn', 'srchStrtSndngDt','srchEndSndngDt', 'srchEndSndngDt');
|
||||
fn_set_date('srchStrtSndngDt', 'srchEndSndngDt','srchEndSndngDt', '7D');
|
||||
|
||||
// 표 조회
|
||||
fn_select_table_data();
|
||||
|
||||
// 날짜 검색
|
||||
$("#srchBtn").on("click", function(){
|
||||
fn_select_table_data();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* 테이블 데이터 조회
|
||||
*/
|
||||
const fn_select_table_data = function() {
|
||||
const srchYear = $("#srchYear").val();
|
||||
const srchMnt = $("#srchMnt").val();
|
||||
|
||||
const data = {
|
||||
srchYear : srchYear,
|
||||
srchMnt : srchMnt,
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url : "/admin/stats/marktAnals/selectAdminMlgStlListInqire",
|
||||
data : data,
|
||||
success:function(resultHtml) {
|
||||
$('#pageDiv').empty();
|
||||
$('#pageDiv').html(resultHtml);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Header.jsp" %>
|
||||
|
||||
<main class="main">
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Left.jsp" %>
|
||||
|
||||
<div class="content">
|
||||
<div class="content__inner">
|
||||
|
||||
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||
<div class="page-title">
|
||||
<h3 class="page-title__title">마일리지 정산</h3>
|
||||
</div>
|
||||
|
||||
<section class="content-section">
|
||||
|
||||
<div class="table-wrapper">
|
||||
<table class="table dashboardSearch">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색조건</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
<select title="조회기간조건" name="srchYear" id="srchYear">
|
||||
<c:forEach var="year" begin="2010" end="${resultMap.currentYear}">
|
||||
<option value="${year}">${year} 년</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select-box">
|
||||
<select title="조회기간달" name="srchMnt" id="srchMnt">
|
||||
<c:forEach var="mnt" begin="1" end="12">
|
||||
<option value="${mnt}">${mnt} 월</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
<button class="btn sm primary ml-5" type="button" id="srchBtn">검색</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-wrapper">
|
||||
<div id="pageDiv">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,220 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<section class="content-section">
|
||||
<table class="table vertical">
|
||||
<caption>해당 테이블에 대한 설명</caption>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<thead id="tableHeader">
|
||||
<tr>
|
||||
<th>법인</th>
|
||||
<th>GC</th>
|
||||
<th>TB</th>
|
||||
<th>SL</th>
|
||||
<th>NP</th>
|
||||
<th>CN</th>
|
||||
<th>DB</th>
|
||||
<th>CN</th>
|
||||
<th>CN</th>
|
||||
<th>CN</th>
|
||||
<th>DB</th>
|
||||
<th>TB</th>
|
||||
<th>IS</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableBody">
|
||||
<tr>
|
||||
<td>
|
||||
사이트
|
||||
</td>
|
||||
<td>
|
||||
CH
|
||||
</td>
|
||||
<td>
|
||||
TZ
|
||||
</td>
|
||||
<td>
|
||||
NC
|
||||
</td>
|
||||
<td>
|
||||
PL
|
||||
</td>
|
||||
<td>
|
||||
NB
|
||||
</td>
|
||||
<td>
|
||||
OY
|
||||
</td>
|
||||
<td>
|
||||
KL
|
||||
</td>
|
||||
<td>
|
||||
DT
|
||||
</td>
|
||||
<td>
|
||||
CB
|
||||
</td>
|
||||
<td>
|
||||
AP
|
||||
</td>
|
||||
<td>
|
||||
LF
|
||||
</td>
|
||||
<td>
|
||||
GO
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${not empty resultMap.mlgStatList}">
|
||||
<c:forEach var = "result" items = "${resultMap.mlgStatList}">
|
||||
<tr>
|
||||
<td>
|
||||
<c:out value="${result.sGroup}"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumCh}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumTz}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumNc}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumPl}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumNb}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumOy}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumKl}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumDt}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumCb}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumAp}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumLf}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.sumGc}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="13"><spring:message code="common.nodata"/></td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
<section class="content-section">
|
||||
<table class="table vertical">
|
||||
<caption>해당 테이블에 대한 설명</caption>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>순서</th>
|
||||
<th>사이트</th>
|
||||
<th>CH</th>
|
||||
<th>TZ</th>
|
||||
<th>NC</th>
|
||||
<th>PL</th>
|
||||
<th>NB</th>
|
||||
<th>OY</th>
|
||||
<th>KL</th>
|
||||
<th>DT</th>
|
||||
<th>CB</th>
|
||||
<th>AP</th>
|
||||
<th>LF</th>
|
||||
<th>GC</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:choose>
|
||||
<c:when test="${not empty resultMap.mlgStlList}">
|
||||
<c:forEach var = "result" items = "${resultMap.mlgStlList}">
|
||||
<tr>
|
||||
<td>
|
||||
<c:out value="${result.sSeq}"/>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${result.sGroup}"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.ch}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.tz}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.nc}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.pl}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.nb}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.oy}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.kl}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.dt}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.cb}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.ap}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.lf}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
<td>
|
||||
<fmt:formatNumber value="${result.gc}" type="number" pattern="#,###"/>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="14"><spring:message code="common.nodata"/></td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
124
src/main/webapp/WEB-INF/views/admin/stats/marktAnals/mlg.jsp
Normal file
124
src/main/webapp/WEB-INF/views/admin/stats/marktAnals/mlg.jsp
Normal file
@@ -0,0 +1,124 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<%-- 공통 include --%>
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Include.jsp" %>
|
||||
</head>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
fn_set_dateRange_function('#dataRangeBtn', 'srchStrtSndngDt','srchEndSndngDt', 'srchEndSndngDt');
|
||||
fn_set_date('srchStrtSndngDt', 'srchEndSndngDt','srchEndSndngDt', '7D');
|
||||
|
||||
// 표 조회
|
||||
fn_select_table_data();
|
||||
|
||||
// 날짜 검색
|
||||
$("#srchBtn").on("click", function(){
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* 테이블 데이터 조회
|
||||
*/
|
||||
const fn_select_table_data = function() {
|
||||
const srchStrtSndngDt = $("#srchStrtSndngDt").val();
|
||||
const srchEndSndngDt = $("#srchEndSndngDt").val();
|
||||
|
||||
const data = {
|
||||
srchStrtSndngDt : srchStrtSndngDt,
|
||||
srchEndSndngDt : srchEndSndngDt,
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url : "/admin/stats/marktAnals/selectAdminMlgTableInqire",
|
||||
data : data,
|
||||
success:function(resultHtml) {
|
||||
console.log('success');
|
||||
$('#pageDiv').empty();
|
||||
$('#pageDiv').html(resultHtml);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Header.jsp" %>
|
||||
|
||||
<main class="main">
|
||||
<%@include file ="/WEB-INF/views/comm/admin/Left.jsp" %>
|
||||
|
||||
<div class="content">
|
||||
<div class="content__inner">
|
||||
|
||||
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||
<div class="page-title">
|
||||
<h3 class="page-title__title">회원 및 마일리지</h3>
|
||||
</div>
|
||||
|
||||
<section class="content-section">
|
||||
|
||||
<div class="table-wrapper">
|
||||
<table class="table dashboardSearch">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색조건</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="datepicker"
|
||||
id="srchStrtSndngDt" name="srchStrtSndngDt" title="시작 날짜 선택"
|
||||
autocomplete="off">
|
||||
<span class="tilde">~</span>
|
||||
<input type="text" class="datepicker"
|
||||
id="srchEndSndngDt" name="srchEndSndngDt" title="종료 날짜 선택"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
<div class="dateRange-btnContainer" id="dataRangeBtn">
|
||||
<button type="button" class="dateRange-btn" id="yesterday">어제</button>
|
||||
<button type="button" class="dateRange-btn" id="today" >오늘</button>
|
||||
<button type="button" class="dateRange-btn" id="threeDays">3일간</button>
|
||||
<button type="button" class="dateRange-btn selected" id="sevenDays">일주일</button>
|
||||
<button type="button" class="dateRange-btn" id="oneMonth">1개월</button>
|
||||
<button type="button" class="dateRange-btn" id="threeMonth">3개월</button>
|
||||
<button type="button" class="dateRange-btn" id="sixMonth">6개월</button>
|
||||
<button type="button" class="dateRange-btn" id="year">1년</button>
|
||||
</div>
|
||||
<button class="btn sm primary ml-5" type="button" id="srchBtn">검색</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-wrapper">
|
||||
<div id="pageDiv">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,111 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld" %>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<section class="content-section">
|
||||
<table class="table vertical">
|
||||
<caption>해당 테이블에 대한 설명</caption>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<thead id="tableHeader">
|
||||
<tr>
|
||||
<th>회수</th>
|
||||
<th>발송날짜</th>
|
||||
<th>소멸 월</th>
|
||||
<th>대상</th>
|
||||
<th>문자발송성공건수</th>
|
||||
<th>구매자수</th>
|
||||
<th>매출</th>
|
||||
<th>사용마일리지</th>
|
||||
<th>비율</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableBody">
|
||||
|
||||
<tr>
|
||||
<td rowspan='4'>-</td>
|
||||
<td rowspan='4'>-</td>
|
||||
<td rowspan='4'>-</td>
|
||||
<td>폐점매장 회원</td>
|
||||
<td>42,554</td>
|
||||
<td>250</td>
|
||||
<td>₩32,420,029</td>
|
||||
<td>₩4,207,881</td>
|
||||
<td>12%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>매장 회원</td>
|
||||
<td>51,780</td>
|
||||
<td>250</td>
|
||||
<td>₩32,420,029</td>
|
||||
<td>₩4,207,881</td>
|
||||
<td>12%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>온라인 회원</td>
|
||||
<td>212,770</td>
|
||||
<td>250</td>
|
||||
<td>₩32,420,029</td>
|
||||
<td>₩4,207,881</td>
|
||||
<td>12%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>합계</td>
|
||||
<td>212,770</td>
|
||||
<td>250</td>
|
||||
<td>₩32,420,029</td>
|
||||
<td>₩4,207,881</td>
|
||||
<td>12%</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="content-section">
|
||||
<table class="table vertical">
|
||||
<caption>해당 테이블에 대한 설명</caption>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<thead id="tableHeader">
|
||||
<tr>
|
||||
<th>날짜</th>
|
||||
<th>내용</th>
|
||||
<th>숫자</th>
|
||||
<th>비율</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableBody">
|
||||
|
||||
<tr>
|
||||
<td rowspan='2'>발송기간</td>
|
||||
<td>구매한 회원중 안내문자 받기전 1년 이상 구매 하지 않은 회원수</td>
|
||||
<td>-</td>
|
||||
<td>발송 대상 대비 비율</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>구매한 회원중 안내문자 받기전에도 1년안에 구매이력 있던 회원수</td>
|
||||
<td>-</td>
|
||||
<td>발송 대상 대비 비율</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user