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

+ 2 - 2
src/main/java/com/style24/front/biz/thirdparty/SearchEngineDiquest.java

@@ -189,7 +189,7 @@ public class SearchEngineDiquest {
 
 			if (jsonObj.get("returnCode").toString().equals("1")) { // 성공
 				result = response.getResponse();
-				log.info("///[getFilterList] result: {}", result);
+//				log.info("///[getFilterList] result: {}", result);
 			}
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -222,7 +222,7 @@ public class SearchEngineDiquest {
 			if (jsonObj.get("returnCode").toString().equals("1")) { // 성공
 				Gson gson = new Gson();
 				result = gson.fromJson(jsonObj.toJSONString(), GoodsListResponse.class);
-				log.info("///[getGoodsList] result: {}", result);
+//				log.info("///[getGoodsList] result: {}", result);
 			}
 		} catch (Exception e) {
 			e.printStackTrace();

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

@@ -312,7 +312,7 @@
 		<if test="keyword != null and keyword != ''"> <!-- 상품검색키워드 -->
 		AND    LEAF_CATE_NO IN (SELECT CG.CATE_NO
 		                        FROM   TB_CATE_GOODS CG
-		                             , TB_GOODS G
+		                             , TB_GOODS G USE INDEX (IX_GOODS_11)
 		                             , TB_GOODS_STOCK S
 		                             , TB_BRAND B
 		                        WHERE  CG.GOODS_CD = G.GOODS_CD
@@ -331,7 +331,7 @@
 		                               )
 		                        AND    G.GOODS_STAT = 'G008_90' /*승인완료상품*/
 		                        AND    G.SELF_MALL_YN = 'Y' /*몰노출상품*/
-		                        AND    NOW() BETWEEN G.SELL_STDT AND G.SELL_EDDT /*유효한 판매기간*/
+		                        AND    G.SELL_STDT &lt;= NOW() AND G.SELL_EDDT >= NOW() /*유효한 판매기간*/
 		                       )
 		</if>
 		ORDER  BY DISP_ORD

+ 42 - 4
src/main/webapp/WEB-INF/views/mob/display/CategoryGoodsListFormMob.html

@@ -381,7 +381,7 @@
 		<input type="hidden" name="sortingType" value="NEW"/>
 <!--		<input type="hidden" name="newGoods" th:value="${cateInfo.formalGb=='G009_20'?'':'40'}" />-->
 		<input type="hidden" name="keyword" value=""/>
-		<input type="hidden" name="benefitArr" th:value="${cateInfo.formalGb=='G009_20'?'':'40:신상'}"/>
+		<input type="hidden" name="benefitArr" th:unless="${cateInfo.formalGb=='G009_20'}" th:value="${cateInfo.formalGb=='G009_20'?'':'40:신상'}"/>
 	</form>
 
 
@@ -1389,7 +1389,11 @@
 					tag += '</ul>\n';
 				});
 				$("#cateDepth").append(tag);
-			}else{
+			}else if(!gagajf.isNull(cate1No)){
+				if(formalGb=='G009_20'){
+					tag += '<a class="daps1" href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\',\'\',\'\',\'\',\'\',\''+formalGb+'\')";>전체</a>\n';
+					tag += '<ul class="daps2">\n';
+				}
 				$.each(cateList, function(idx,item){
 					$.each(allCateList, function (allIdx, allItem){
 						if(brandGroupNo > 0){
@@ -1446,10 +1450,44 @@
 						$('#leafCateList').append(leafTag);
 					}
 				});
+				if(formalGb=='G009_20'){
+					tag += '</ul>\n';
+				}
 				$("#cateDepth").append(tag);
+			}else{
+				let tag = '';
+				if(formalGb == 'G009_20'){
+					$("#htopTitle").text('아울렛');
+					tag += '<ul class="daps2">\n';
+					tag += '<li>';
+					tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\'';
+					if(formalGb=='G009_20'){
+						tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+					}
+					tag += ' )">전체</a>';
+					tag += '</li>\n';
+					tag += '</ul>\n';
+					$("#cateDepth").append(tag);
+				}
+				let leafTag = '';
+				leafTag += '<a href="javascript:void(0);" class="on" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\', \'\' ';
+				if(formalGb=='G009_20'){
+					leafTag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+				}
+				leafTag += ');">전체</a>';
+				$.each(allCateList, function (allIdx, allItem){
+					$.each(cateList, function(idx,item){
+						if(allItem.cate1No == item.cate1No){
+							leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' ';
+							if(formalGb=='G009_20'){
+								leafTag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+							}
+							leafTag += ');">'+item.cate1Nm+'</a>';
+						}
+					});
+				});
+				$('#leafCateList').append(leafTag);
 			}
-
-
 		}
 
 	</script>