Explorar o código

상품리스트 필터조회 오류 수정

bin2107 %!s(int64=5) %!d(string=hai) anos
pai
achega
fdbabe8f1e

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsfDisplay.xml

@@ -655,7 +655,7 @@
 		FROM   TB_CATE_FILTER
 		WHERE  SITE_CD = #{siteCd}
 		AND    CATE_GB = #{cateGb}
-		<if test='formalGb != null and formalGb = "G009_20"'>
+		<if test='formalGb != null and formalGb == "G009_20"'>
 		AND    FORMAL_GB = #{formalGb}
 		</if>
 		AND    BRAND_GROUP_NO = #{brandGroupNo}

+ 1 - 1
src/main/webapp/WEB-INF/views/web/display/BrandMainFormWeb.html

@@ -68,7 +68,7 @@
 
 				<th:block th:if="${contentsLoc=='005'}">
 					<!-- brand_info -->
-					<th:block th:each="ContentsData, ContentsStat : ${brandMainLayoutData.ContentsList and !brandMainLayoutData.ContentsList.empty}">
+					<th:block th:each="ContentsData, ContentsStat : ${brandMainLayoutData.ContentsList}">
 						<div class="content brand_info">
 							<div class="cont_body clear">
 								<div class="brand_tit">

+ 10 - 8
src/main/webapp/ux/plugins/gaga/gaga.infinite.scrollSession.js

@@ -121,7 +121,8 @@ var gagaInfiniteScroll = {
 
 			console.log('historyData.backScroll:::'+historyData.scroll);
 			console.log('infiniteContainer:::'+$("#infiniteContainer").height());
-			gagaInfiniteScroll.draw(historyData.htm, historyData.scroll, 0);
+			gagaInfiniteScroll.draw(historyData.htm);
+			// gagaInfiniteScroll.draw(historyData.htm, historyData.scroll, 0);
 		};
 
 		$(window).on('scroll', function() {
@@ -161,11 +162,11 @@ var gagaInfiniteScroll = {
 						, gagaInfiniteScroll.pageStatus.backScroll
 					);
 				if (scrollTop && containerHeight) {
-					console.log('here3');
+					// console.log('here3');
 					// gagaInfiniteScroll.obj.$window.scrollTop.scrollTop(0).scrollTop(scrollTop);
 				} else {
-					console.log('here4');
-					gagaInfiniteScroll.obj.$window.scrollTop = scrollTop+1;
+					// console.log('here4');
+					// gagaInfiniteScroll.obj.$window.scrollTop = scrollTop+1;
 					// gagaInfiniteScroll.obj.$window.scrollTop(scrollTop+1);
 					// gagaInfiniteScroll.obj.$window.scrollTop(gagaInfiniteScroll.obj.$window.scrollTop() + 1);
 				}
@@ -178,12 +179,13 @@ var gagaInfiniteScroll = {
 
 			console.log('scrollTop::'+scrollTop);
 			console.log('containerHeight::'+containerHeight);
-			if (scrollTop ) { //&& containerHeight
-				console.log('here5');
+			if (scrollTop && containerHeight) { //&& containerHeight
+				// console.log('here5');
 				// gagaInfiniteScroll.obj.$window.scrollTop.scrollTop(0).scrollTop(scrollTop);
-				gagaInfiniteScroll.obj.$window.scrollTop = scrollTop;
+				// gagaInfiniteScroll.obj.$window.scrollTop = scrollTop;
 			} else {
-				$(window).scrollTop($(window).scrollTop() + 1);
+				// console.log('here6');
+				// $(window).scrollTop($(window).scrollTop() + 1);
 			}
 
 			this.pageStatus.loadAlign = 'not';