Ver Fonte

[모바일] 몰메인

bin2107 há 5 anos atrás
pai
commit
c056a921f8

+ 1 - 1
src/main/java/com/style24/front/biz/web/TsfDisplayController.java

@@ -162,7 +162,7 @@ public class TsfDisplayController extends TsfBaseController {
 				mainLayout.setBrandPickList(displayService.getContentsForGoods(contents));
 			}
 
-			if (contentsLoc.equals("SMM009")) {
+			if (contentsLoc.equals("SMM009") || contentsLoc.equals("SMM012")) {
 				mainLayout.setMdPickList(displayService.getContentsForGoods(contents));
 			}
 

+ 2 - 2
src/main/java/com/style24/persistence/mybatis/shop/TsfGoods.xml

@@ -1280,7 +1280,7 @@
 		                 , ROW_NUMBER() OVER(ORDER BY GS.SELL_WEEK_QTY DESC
 		                                            , G.GOODS_CD) AS NUMB
 		                     </when>
-		                     <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007'"> <!-- md추천 -->
+		                     <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'"> <!-- md추천 -->
 		                 , ROW_NUMBER() OVER(ORDER BY CTG.DISP_ORD
 		                 , G.REG_DT DESC
 		                 , G.GOODS_CD) AS NUMB
@@ -1298,7 +1298,7 @@
 		                     </otherwise>
 		                 </choose>
 		            <choose>
-		                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007'"> <!-- md추천 -->
+		                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'"> <!-- md추천 -->
 		                    FROM	TB_CONTENTS CT
 		                    , TMP_CONTENTS_GOODS CTG
 		                    , TB_GOODS G

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/display/MallMainFormMob.html

@@ -278,7 +278,7 @@
 
 			<th:block th:if="${contentsLoc=='007'}">
 				<!-- 7. 브랜드픽 -->
-				<div class="inner">
+				<div class="inner" th:if="${mainData.ContentsList != null}">
 					<div class="main_pick" >
 						<div class="titWrap">
 							<h2 th:text="${contentsTitle}"></h2>
@@ -375,7 +375,7 @@
 				</div>
 			</th:block>
 
-			<th:block th:if="${contentsLoc=='009'}">
+			<th:block th:if="${contentsLoc=='012'}">
 				<!-- 9. MD추천 스타일 -->
 				<div class="inner">
 					<div class="main_recomm">