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

몰메인속도개선건 수정, 주석소스 제거(요청옴)

jmh 4 лет назад
Родитель
Сommit
1fabb7fb06

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

@@ -1702,6 +1702,7 @@
 	           G.BRAND_GROUP_NM     /*브랜드그룹명*/
 	           G.BRAND_GROUP_NM     /*브랜드그룹명*/
 	         , G.GOODS_CD           /*상품코드*/
 	         , G.GOODS_CD           /*상품코드*/
 	         , G.GOODS_NM           /*상품명*/
 	         , G.GOODS_NM           /*상품명*/
+	         , G.GOODS_FULL_NM
 	         , G.GOODS_GB           /*상품구분*/
 	         , G.GOODS_GB           /*상품구분*/
 	         , G.SELF_GOODS_YN      /*자사상품여부*/
 	         , G.SELF_GOODS_YN      /*자사상품여부*/
 	         , G.FOREIGN_BUY_YN     /*해외구매대행여부*/
 	         , G.FOREIGN_BUY_YN     /*해외구매대행여부*/
@@ -1735,6 +1736,7 @@
 	                   TT.BRAND_GROUP_NM 									     /*브랜드그룹명*/
 	                   TT.BRAND_GROUP_NM 									     /*브랜드그룹명*/
 	                 , TT.GOODS_CD                                               /*상품코드*/
 	                 , TT.GOODS_CD                                               /*상품코드*/
 	                 , TT.GOODS_NM                                               /*상품명*/
 	                 , TT.GOODS_NM                                               /*상품명*/
+	                 , TT.GOODS_FULL_NM
 	                 , TT.GOODS_GB                                               /*상품구분*/
 	                 , TT.GOODS_GB                                               /*상품구분*/
 	                 , TT.SELF_GOODS_YN      /*자사상품여부*/
 	                 , TT.SELF_GOODS_YN      /*자사상품여부*/
 	                 , TT.FOREIGN_BUY_YN                                         /*해외구매대행여부*/
 	                 , TT.FOREIGN_BUY_YN                                         /*해외구매대행여부*/
@@ -1783,9 +1785,6 @@
 	                    AND    CTG.GOODS_CD = GS.GOODS_CD
 	                    AND    CTG.GOODS_CD = GS.GOODS_CD
 	                    </if>
 	                    </if>
 	                    AND		CTG.GOODS_CD = TT.GOODS_CD
 	                    AND		CTG.GOODS_CD = TT.GOODS_CD
-	                   -- AND		CTG.GOODS_CD = S.GOODS_CD
-	                   -- AND		G.BRAND_CD = B.BRAND_CD
-	                   -- AND     B.BRAND_GROUP_NO = BG.BRAND_GROUP_NO
 	                    AND		CT.CONTENTS_LOC = #{contentsLoc}
 	                    AND		CT.CONTENTS_LOC = #{contentsLoc}
 	                    <if test="contentsLoc == 'SMM009' or contentsLoc == 'SMM012'">
 	                    <if test="contentsLoc == 'SMM009' or contentsLoc == 'SMM012'">
 	                    AND 	CTG.CONTENTS_SQ = #{dispOrd}
 	                    AND 	CTG.CONTENTS_SQ = #{dispOrd}

+ 5 - 147
src/main/webapp/WEB-INF/views/web/display/MallMainFormWeb.html

@@ -130,7 +130,7 @@
 														</div>
 														</div>
 														<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 														<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 														<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
 														<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
-														<div class=" itemName" th:text="${goodsData.goodsFullNm}">스타 착용 여성 퍼 아플리케 오버핏 투마일 웨어링 점퍼</div>
+														<div class="itemName" th:text="${goodsData.goodsFullNm}">스타 착용 여성 퍼 아플리케 오버핏 투마일 웨어링 점퍼</div>
 														<p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
 														<p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
 															<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,3,'COMMA')}">89,000</span>
 															<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,3,'COMMA')}">89,000</span>
 															<span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 															<span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
@@ -187,7 +187,7 @@
 															</div>
 															</div>
 															<p class=" itemBrand" th:text="${bestItemData.brandGroupNm}">BRAND NAME</p>
 															<p class=" itemBrand" th:text="${bestItemData.brandGroupNm}">BRAND NAME</p>
 															<div class="itemComment" th:unless="${bestItemData.goodsTnm == null or bestItemData.goodsTnm == ''}" th:text="${bestItemData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
 															<div class="itemComment" th:unless="${bestItemData.goodsTnm == null or bestItemData.goodsTnm == ''}" th:text="${bestItemData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
-															<div class=" itemName" th:text="${bestItemData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
+															<div class="itemName" th:text="${bestItemData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 															<p class="itemPrice">[[${#numbers.formatInteger(bestItemData.currPrice,0,'COMMA')}]]
 															<p class="itemPrice">[[${#numbers.formatInteger(bestItemData.currPrice,0,'COMMA')}]]
 																<span class="itemPrice_original" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${#numbers.formatInteger(bestItemData.listPrice,3,'COMMA')}">89,000</span>
 																<span class="itemPrice_original" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${#numbers.formatInteger(bestItemData.listPrice,3,'COMMA')}">89,000</span>
 																<span class=" itemPercent" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${(bestItemData.listPrice == 0 ? 0 : #numbers.formatDecimal((bestItemData.listPrice - bestItemData.currPrice) / (bestItemData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 																<span class=" itemPercent" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${(bestItemData.listPrice == 0 ? 0 : #numbers.formatDecimal((bestItemData.listPrice - bestItemData.currPrice) / (bestItemData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
@@ -265,11 +265,7 @@
 									<div id="countdown">
 									<div id="countdown">
 										<div id="tiles"></div>
 										<div id="tiles"></div>
 									</div>
 									</div>
-<!--									<div class="count_time" id="countdownTime">-->
-<!--										<span id="h-hours">HOURS</span>-->
-<!--										<span id="h-minutes">MINS</span>-->
-<!--										<span id="h-seconds">SECS</span>-->
-<!--									</div>-->
+
 									<div class="count_time">
 									<div class="count_time">
 										<span>HOURS</span>
 										<span>HOURS</span>
 										<span>MINS</span>
 										<span>MINS</span>
@@ -277,64 +273,6 @@
 									</div>
 									</div>
 								</div>
 								</div>
 							</div>
 							</div>
-<!--							<script>-->
-<!--								/* 핫딜 countDown */-->
-<!--								// var target_date = new Date().getTime() + (1000*3600*8); // set the countdown date-->
-<!--							  -->
-<!--								var target_date = '';-->
-<!--								if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){-->
-<!--									target_date = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");-->
-<!--								}-->
-<!--								if(target_date != null && target_date != ''){-->
-<!--									var days, hours, minutes, seconds; // variables for time units-->
-
-<!--									var countdown = document.getElementById("tiles"); // get tag element-->
-
-<!--									getCountdown();-->
-
-<!--									var timerStop = setInterval(function () { getCountdown(); }, 1000);-->
-
-<!--									var fixDate = new Date().getTime();-->
-<!--									var fixTarget = (target_date - fixDate) / 1000;-->
-<!--									var width = (86400-fixTarget)*100/86400;-->
-
-<!--									function getCountdown(){-->
-
-<!--										// find the amount of "seconds" between now and target-->
-<!--										var current_date = new Date().getTime();-->
-<!--										var seconds_left = (target_date - current_date) / 1000;-->
-
-<!--										seconds_left = seconds_left % 86400;-->
-
-<!--										hours = pad( parseInt(seconds_left / 3600) );-->
-<!--										seconds_left = seconds_left % 3600;-->
-
-<!--										minutes = pad( parseInt(seconds_left / 60) );-->
-<!--										seconds = pad( parseInt( seconds_left % 60 ) );-->
-
-<!--										// format countdown string + set tag value-->
-<!--										countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";-->
-
-<!--										var elem = document.getElementById("barCurrent");-->
-<!--										function progressMove(){-->
-<!--											width += (100-width)/fixTarget;-->
-<!--											elem.style.width = width + "%";-->
-<!--										}-->
-<!--										progressMove();-->
-
-<!--										if(seconds_left < 1){-->
-<!--											clearInterval(timerStop);-->
-<!--											elem.style.width = "100%";-->
-<!--										}-->
-
-<!--									}-->
-
-<!--									function pad(n) {-->
-<!--										return (n < 10 ? '0' : '') + n;-->
-<!--									}-->
-<!--								}-->
-<!--								/* countDown */-->
-<!--							</script>-->
 						</div>
 						</div>
 						<div class="cont_body">
 						<div class="cont_body">
 							<div class="swiper-container post-deal">
 							<div class="swiper-container post-deal">
@@ -434,7 +372,7 @@
 																	<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 																	<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 																</div>
 																</div>
 																<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
 																<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
-																<div class=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
+																<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">80,100
 																<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">80,100
 																	<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																	<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																	<span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 																	<span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
@@ -528,7 +466,7 @@
 																		</div>
 																		</div>
 																		<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 																		<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 																		<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
 																		<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
-																		<div class=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
+																		<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																		<p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
 																		<p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
 																			<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																			<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																			<span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 																			<span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
@@ -588,49 +526,7 @@
 	</div>
 	</div>
 </div>
 </div>
 <script th:inline="javascript">
 <script th:inline="javascript">
-/*<![CDATA[*/
-
-// var targetTime = '';
-// if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){
-// 	targetTime = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");
-// }
-// if(targetTime != null && targetTime != ''){
-// 	/* 핫딜 countDown */
-// 	var endTime = new Date(targetTime); // 남은시간 지정
-// 	endTime = (Date.parse(endTime) / 1000);
-//
-// 	var countdown = document.getElementById("tiles"); // get tag element
-//
-// 	getCountdown();
-//
-// 	setInterval(function () { getCountdown(); }, 1000);
-//
-// 	function getCountdown(){
-// 		// find the amount of "seconds" between now and target
-// 		var now = new Date();
-// 		now = (Date.parse(now) / 1000);
-//
-// 		var timeLeft = endTime - now;
-//
-// 		var days = Math.floor(timeLeft / 86400);
-// 		var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
-// 		var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
-// 		var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
-//
-// 		if (hours < '10') { hours = '0' + hours; }
-// 		if (minutes < '10') { minutes = '0' + minutes; }
-// 		if (seconds < '10') { seconds = '0' + seconds; }
-//
-// 		// format countdown string + set tag value
-// 		countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
-// 	}
-//
-// 	function pad(n) {
-// 		return (n < 10 ? '0' : '') + n;
-// 	}
-// }
 
 
-/* 핫딜 countDown */
 /* 핫딜 countDown */
 /* 핫딜 countDown */
 var target_date = '';
 var target_date = '';
 if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){
 if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){
@@ -687,44 +583,6 @@ if(target_date != null && target_date != ''){
 }
 }
 
 
 
 
-/* countDown */
-
-// var targetTime = $("#socailForm").find("input[name=targetTime]").val();
-// if(targetTime != null && targetTime != ''){
-// 	/* 핫딜 countDown */
-// 	var endTime = new Date(targetTime); // 남은시간 지정
-// 	endTime = (Date.parse(endTime) / 1000);
-//
-// 	var countdown = document.getElementById("tiles"); // get tag element
-//
-// 	getCountdown();
-//
-// 	setInterval(function () { getCountdown(); }, 1000);
-//
-// 	function getCountdown(){
-// 		// find the amount of "seconds" between now and target
-// 		var now = new Date();
-// 		now = (Date.parse(now) / 1000);
-//
-// 		var timeLeft = endTime - now;
-//
-// 		var days = Math.floor(timeLeft / 86400);
-// 		var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
-// 		var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
-// 		var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
-//
-// 		if (hours < '10') { hours = '0' + hours; }
-// 		if (minutes < '10') { minutes = '0' + minutes; }
-// 		if (seconds < '10') { seconds = '0' + seconds; }
-//
-// 		// format countdown string + set tag value
-// 		countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
-// 	}
-//
-// 	function pad(n) {
-// 		return (n < 10 ? '0' : '') + n;
-// 	}
-// }
 
 
 // 컨텐츠 호출
 // 컨텐츠 호출
 $(document).ready( function() {
 $(document).ready( function() {