Просмотр исходного кода

[쿠폰] 검색 조건 오류 수정

bin2107 5 лет назад
Родитель
Сommit
eba03884cc

+ 1 - 0
src/main/java/com/style24/persistence/domain/Coupon.java

@@ -59,6 +59,7 @@ public class Coupon extends TscBaseDomain {
     private String afChannel;               // 제휴링크
     private String dcCdGb;                  // 할인코드유형 (공통코드G233)
     private String rdCpnNm;                 // 랜덤쿠폰 사용키 (시리얼명 or 난수)
+    private String chkExcep;                // 종료제외여부
 
     private String custNo;
     private String custNm;

+ 11 - 4
src/main/webapp/WEB-INF/views/marketing/CouponListForm.html

@@ -68,14 +68,14 @@
 						</td>
 						<th>등록자</th>
 						<td>
-							<input type="text" class="w200" name="regNo" id="regNo">
+							<input type="text" class="w200" name="regNm" id="regNm">
 						</td>
 					</tr>
 					<tr>
 						<th>할인유형</th>
 						<td>
-							<select name="dcWayList" id="dcWayList">
-								<option value="">[전체]</option> dcWayList
+							<select name="dcWay" id="dcWay">
+								<option value="">[전체]</option>
 								<option th:if="${dcWayList}" th:each="oneData, status : ${dcWayList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
 							</select>
 						</td>
@@ -99,7 +99,7 @@
 					<tr>
 						<th colspan="1">
 						<td colspan="9">
-							<label class="chkBox"><input type="checkbox" id="endCpnExcep" name="chkExcep" value="E" checked>종료쿠폰제외</label>
+							<label class="chkBox"><input type="checkbox" id="endCpnExcep" name="chkExcep" value="Y" checked>종료쿠폰제외</label>
 						</td>
 						</th>
 					</tr>
@@ -261,6 +261,13 @@
 		var fnCouponListSearch = function() {
 			if(!fnConditionCheck()) return;
 
+			if($("#cpnSearchForm").find("input[name=chkExcep]").is(':checked') == false){
+				$("#cpnSearchForm").find("input[name=chkExcep]").val('N');
+			}else{
+				$("#cpnSearchForm").find("input[name=chkExcep]").val('Y');
+			}
+
+
 			gagaPaging.init('cpnSearchForm', fnSearchCallBack, 'couponListPagination', $('#cpnSearchForm').find('#pageSize').val());
 			// gagaPaging.load(1);
 			gagaPaging.load($("#cpnSearchForm input[name=pageNo]").val());