등급제 내역 추가
@7a452902fc10f522f6101dc23b21ff1cabafd696
--- src/main/java/itn/let/sym/grd/service/MberGrdVO.java
+++ src/main/java/itn/let/sym/grd/service/MberGrdVO.java
... | ... | @@ -5,7 +5,8 @@ |
| 5 | 5 |
import itn.let.uss.umt.service.UserDefaultVO; |
| 6 | 6 |
|
| 7 | 7 |
public class MberGrdVO extends UserDefaultVO {
|
| 8 |
- |
|
| 8 |
+ private static final long serialVersionUID = 1L; |
|
| 9 |
+ |
|
| 9 | 10 |
private int grdSetNo; // 등급설정번호 |
| 10 | 11 |
private String grdSetNm; // 등급설정명 |
| 11 | 12 |
private long stdAmt; // 기준결제액 |
... | ... | @@ -40,7 +41,9 @@ |
| 40 | 41 |
|
| 41 | 42 |
private String grdNoti; // 회원등급제 시행 여부 |
| 42 | 43 |
private String grdDate; // 회원등급제 시행일자 |
| 43 |
- |
|
| 44 |
+ |
|
| 45 |
+ // 검색필터 |
|
| 46 |
+ private String searchGrdStatus; |
|
| 44 | 47 |
|
| 45 | 48 |
public int getGrdSetNo() {
|
| 46 | 49 |
return grdSetNo; |
... | ... | @@ -230,4 +233,10 @@ |
| 230 | 233 |
public void setGrdDate(String grdDate) {
|
| 231 | 234 |
this.grdDate = grdDate; |
| 232 | 235 |
} |
| 236 |
+ public String getSearchGrdStatus() {
|
|
| 237 |
+ return searchGrdStatus; |
|
| 238 |
+ } |
|
| 239 |
+ public void setSearchGrdStatus(String searchGrdStatus) {
|
|
| 240 |
+ this.searchGrdStatus = searchGrdStatus; |
|
| 241 |
+ } |
|
| 233 | 242 |
} |
--- src/main/resources/egovframework/sqlmap/let/sym/grd/MberGrd_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/sym/grd/MberGrd_SQL_Mysql.xml
... | ... | @@ -95,8 +95,8 @@ |
| 95 | 95 |
, A.AMT AS amt |
| 96 | 96 |
, A.TOT_AMT AS totAmt |
| 97 | 97 |
, DATE_FORMAT(A.GRD_DATE, '%Y-%m-%d') AS grdDate |
| 98 |
- , DATE_FORMAT(A.GRD_START_DATE, '%Y-%m-%d %H:%i') AS grdStartDate |
|
| 99 |
- , DATE_FORMAT(A.GRD_END_DATE, '%Y-%m-%d %H:%i') AS grdEndDate |
|
| 98 |
+ , DATE_FORMAT(A.GRD_START_DATE, '%Y-%m-%d') AS grdStartDate |
|
| 99 |
+ , DATE_FORMAT(A.GRD_END_DATE, '%Y-%m-%d') AS grdEndDate |
|
| 100 | 100 |
, A.GRD_STATUS AS grdStatus |
| 101 | 101 |
, CASE |
| 102 | 102 |
WHEN A.GRD_STATUS = 'Y' |
... | ... | @@ -126,7 +126,10 @@ |
| 126 | 126 |
<isEqual prepend="AND" property="searchCondition" compareValue="1"> |
| 127 | 127 |
A.MBER_ID = #searchKeyword# |
| 128 | 128 |
</isEqual> |
| 129 |
- </isNotEmpty> |
|
| 129 |
+ </isNotEmpty> |
|
| 130 |
+ <isNotEmpty prepend="AND" property="searchGrdStatus"> |
|
| 131 |
+ A.GRD_STATUS = #searchGrdStatus# |
|
| 132 |
+ </isNotEmpty> |
|
| 130 | 133 |
ORDER BY 1=1 |
| 131 | 134 |
<isNotEmpty property="searchSortCnd"> |
| 132 | 135 |
,$searchSortCnd$ |
--- src/main/webapp/WEB-INF/jsp/sym/grd/mberGrdList.jsp
+++ src/main/webapp/WEB-INF/jsp/sym/grd/mberGrdList.jsp
... | ... | @@ -24,6 +24,13 @@ |
| 24 | 24 |
<meta http-equiv="Content-Language" content="ko"> |
| 25 | 25 |
<title>등급제 내역</title> |
| 26 | 26 |
<script type="text/javaScript" language="javascript" defer="defer"> |
| 27 |
+$( document ).ready(function(){
|
|
| 28 |
+ // change 함수 |
|
| 29 |
+ $("#searchGrdStatus").change(function(e){
|
|
| 30 |
+ linkPage(1); |
|
| 31 |
+ }); |
|
| 32 |
+}); |
|
| 33 |
+ |
|
| 27 | 34 |
|
| 28 | 35 |
function fn_search(){
|
| 29 | 36 |
linkPage(1); |
... | ... | @@ -62,16 +69,26 @@ |
| 62 | 69 |
<div class="pageCont"> |
| 63 | 70 |
<div class="listSerch"> |
| 64 | 71 |
|
| 72 |
+ <select id="searchGrdStatus" name="searchGrdStatus" title="상태"> |
|
| 73 |
+ <option value="" <c:if test="${empty searchVO.searchGrdStatus }">selected="selected"</c:if> >상태</option>
|
|
| 74 |
+ <option value="Y" <c:if test="${searchVO.searchGrdStatus == 'Y'}">selected="selected"</c:if> >진행중</option>
|
|
| 75 |
+ <option value="N" <c:if test="${searchVO.searchGrdStatus == 'N'}">selected="selected"</c:if> >미진행</option>
|
|
| 76 |
+ <option value="E" <c:if test="${searchVO.searchGrdStatus == 'E'}">selected="selected"</c:if> >종료</option>
|
|
| 77 |
+ </select> |
|
| 78 |
+ |
|
| 65 | 79 |
<select id="searchCondition" name="searchCondition"> |
| 66 |
- <option value="" <c:if test="${empty searchVO.searchCondition}">selected="selected"</c:if>>전체</option>
|
|
| 67 |
- <option value="1" <c:if test="${searchVO.searchCondition == '1'}">selected="selected"</c:if>>아이디</option>
|
|
| 80 |
+ <option value="" <c:if test="${empty searchVO.searchCondition}">selected="selected"</c:if>>전체</option>
|
|
| 81 |
+ <option value="1" <c:if test="${searchVO.searchCondition == '1'}">selected="selected"</c:if>>아이디</option>
|
|
| 68 | 82 |
</select> |
| 69 | 83 |
|
| 70 | 84 |
<input id="searchKeyword" name="searchKeyword" class="recentSearch" type="text" value="<c:out value='${searchVO.searchKeyword}'/>" size="25" title="검색" maxlength="100" />
|
| 71 | 85 |
<input type="button" class="btnType1" value="검색" onclick="fn_search(); return false;"> |
| 72 | 86 |
</div> |
| 73 | 87 |
<div class="listTop"> |
| 74 |
- <p class="tType5">총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건</p>
|
|
| 88 |
+ <p class="tType5"> |
|
| 89 |
+ 총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건
|
|
| 90 |
+ * 누적결제액은 문자할인이벤트 대상 결제금액을 제외한 합계금액입니다. |
|
| 91 |
+ </p> |
|
| 75 | 92 |
<div class="rightWrap"> |
| 76 | 93 |
<!-- <input type="button" class="printBtn" > --> |
| 77 | 94 |
<select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);"> |
... | ... | @@ -102,7 +119,7 @@ |
| 102 | 119 |
<th>이름<input type="button" class="sortBtn sort" id="sort_mberNm"></th> |
| 103 | 120 |
<th>등급<input type="button" class="sortBtn sort" id="sort_grdSetNo"></th> |
| 104 | 121 |
<th>누적결제액<input type="button" class="sortBtn sort" id="sort_totAmt"></th> |
| 105 |
- <th>시행일<input type="button" class="sortBtn sort" id="sort_grdDate"></th> |
|
| 122 |
+ <th>등급제 시행일<input type="button" class="sortBtn sort" id="sort_grdDate"></th> |
|
| 106 | 123 |
<th>시작일<input type="button" class="sortBtn sort" id="sort_grdStartDate"></th> |
| 107 | 124 |
<th>종료일 <input type="button" class="sortBtn sort" id="sort_grdEndDate"></th> |
| 108 | 125 |
<th>등록일 <input type="button" class="sortBtn sort" id="sort_regDate"></th> |
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?