Browse Source

쿠폰발행 - 활동회원 쿼리

bin2107 5 năm trước cách đây
mục cha
commit
6df0786c80

+ 3 - 0
src/main/java/com/style24/persistence/domain/CustomerSearch.java

@@ -33,6 +33,9 @@ public class CustomerSearch extends TscBaseDomain {
 	private String custNm;
 	private String email;
 	private String custId;
+	
+	// 쿠폰발행팝업
+	private String cpnPubPopYn;		// 쿠폰발행팝업
 
 	private TscPageRequest pageable;
 	private int pageNo = 1;

+ 4 - 0
src/main/java/com/style24/persistence/mybatis/shop/TsaCustomer.xml

@@ -80,7 +80,9 @@
 	<!-- 활동회원목록 -->
 	<select id="getCustomerActiveList" parameterType="CustomerSearch" resultType="Customer">
 		/* TsaCustomer.getCustomerActiveList */
+		<if test='cpnPubPopYn != null and cpnPubPopYn != "Y"'>
 		<include refid="selectForPagingHeader"/>
+		</if>
 		SELECT CUST_NO
 		     , CUST_ID
 		     , CUST_NM
@@ -194,7 +196,9 @@
 		<if test="custId != null and custId != ''">
 		AND    CUST_ID = #{custId}
 		</if>
+		<if test='cpnPubPopYn != null and cpnPubPopYn != "Y"'>
 		<include refid="selectForPagingFooter"/>
+		</if>
 	</select>
 
 	<!--회원정보 수정-->

+ 1 - 1
src/main/webapp/WEB-INF/views/marketing/CouponPubForCustPopupForm.html

@@ -22,7 +22,7 @@
 		</div>
 		<div class="panelContent">
 			<form id="custSearchForm" name="custSearchForm" action="#" th:action="@{'/customer/active/list'}" >
-				<input type="hidden" name="searchDateGb" value="joinDt"/>
+				<input type="hidden" name="cpnPubPopYn" value="Y"/>
 				<table class="frmStyle">
 					<colgroup>
 						<col width="10%">