Explorar el Código

브랜드 메인 딜상품 가격 표출 수정

card007 hace 4 años
padre
commit
bf30a74223

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

@@ -3478,6 +3478,7 @@
 		            , G.GOODS_CD /*상품코드*/
 		            , G.GOODS_NM /*상품명*/
 		            , G.GOODS_GB /*상품구분*/
+		            , G.GOODS_TYPE
 		            , G.SELF_GOODS_YN /*자사상품여부*/
 		            , G.FOREIGN_BUY_YN /*해외구매대행여부*/
 		            , G.PARALLEL_IMPORT_YN /*병행수입여부*/
@@ -3499,6 +3500,7 @@
 		                 , G.GOODS_CD /*상품코드*/
 		                 , G.GOODS_NM /*상품명*/
 		                 , G.GOODS_GB /*상품구분*/
+		                 , G.GOODS_TYPE
 		                 , G.SELF_GOODS_YN /*자사상품여부*/
 		                 , G.FOREIGN_BUY_YN /*해외구매대행여부*/
 		                 , G.PARALLEL_IMPORT_YN /*병행수입여부*/
@@ -3593,6 +3595,7 @@
 		          , GOODS_CD /*상품코드*/
 		          , GOODS_NM /*상품명*/
 		          , GOODS_GB /*상품구분*/
+		          , GOODS_TYPE
 		          , SELF_GOODS_YN /*자사상품여부*/
 		          , FOREIGN_BUY_YN /*해외구매대행여부*/
 		          , PARALLEL_IMPORT_YN /*병행수입여부*/
@@ -3611,6 +3614,7 @@
 		                , G.GOODS_CD /*상품코드*/
 		                , G.GOODS_NM /*상품명*/
 		                , G.GOODS_GB /*상품구분*/
+		                , G.GOODS_TYPE
 		                , G.SELF_GOODS_YN /*자사상품여부*/
 		                , G.FOREIGN_BUY_YN /*해외구매대행여부*/
 		                , G.PARALLEL_IMPORT_YN /*병행수입여부*/
@@ -3637,6 +3641,7 @@
 		     , G.GOODS_CD
 		     , FN_GET_GOODS_NM(G.GOODS_NM,G.GOODS_GB,G.FOREIGN_BUY_YN,G.PARALLEL_IMPORT_YN,G.ORDER_MADE_YN) AS GOODS_FULL_NM /*상품FULL명*/
 		     , G.GOODS_TNM
+		     , G.GOODS_TYPE
 		     , G.MAIN_COLOR_CD
 		     , G.LIST_PRICE
 		     , G.CURR_PRICE

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

@@ -159,6 +159,7 @@
 		         , G.MAIN_COLOR_CD                                          /*대표색상코드*/
 		         , G.LIST_PRICE                                             /*정상가(최초판매가)*/
 		         , G.CURR_PRICE                                             /*현재판매가*/
+		         , G.GOODS_TYPE
 		         , RANK() OVER(PARTITION BY P.PLAN_SQ
 		                       ORDER BY PG.DISP_ORD
 		                              , PG.GOODS_CD)      AS NUMB

+ 20 - 5
src/main/webapp/WEB-INF/views/mob/display/BrandMainFormMob.html

@@ -106,11 +106,14 @@
 														<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}"  th:text="${goodsData.goodsTnm}"></div>
 														<div class="itemName" th:text="${goodsData.goodsFullNm}"></div>
 <!--														<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}"></p>-->
-														<p class="itemPrice">
+														<p th:unless="${goodsData.goodsType=='G056_D'}" class="itemPrice">
 															<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 															[[${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}]]
 															<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>
 														</p>
+														<p th:if="${goodsData.goodsType=='G056_D'}" class="itemPrice">
+															[[${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')} + ' ~']]
+														</p>
 													</a>
 												</div>
 											</div>
@@ -181,11 +184,14 @@
 															<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 															<div class="itemName"th:text="${goodsData.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
 															<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}">#가을 느낌 물씬!!</div>
-															<p class="itemPrice">
+															<p th:unless="${goodsData.goodsType=='G056_D'}" class="itemPrice">
 																<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																[[${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}]]
 																<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>
 															</p>
+															<p th:if="${goodsData.goodsType=='G056_D'}" class="itemPrice">
+																[[${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')} + ' ~']]
+															</p>
 														</a>
 													</div>
 												</div>
@@ -267,11 +273,14 @@
 															<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 															<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
 															<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}">#가을 느낌 물씬!!</div>
-															<p class="itemPrice">
+															<p th:unless="${goodsData.goodsType=='G056_D'}" class="itemPrice">
 																<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
 																<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>
 															</p>
+															<p th:if="${goodsData.goodsType=='G056_D'}" class="itemPrice">
+																[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')} + ' ~']]
+															</p>
 														</a>
 													</div>
 												</div>
@@ -317,11 +326,14 @@
 																			</div>
 																			<p class="itemBrand" th:text="${planningGoods.brandGroupNm}">BRAND NAME</p>
 																			<div class="itemName" th:text="${planningGoods.goodsNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
-																			<p class="itemPrice">
+																			<p th:unless="${planningGoods.goodsType=='G056_D'}" class="itemPrice">
 																				<span class="itemPrice_original" th:if="${planningGoods.currPrice != planningGoods.listPrice}" th:text="${#numbers.formatInteger(planningGoods.listPrice,1,'COMMA')}">89,000</span>
 																				[[${#numbers.formatInteger(planningGoods.currPrice,0,'COMMA')}]]
 																				<span class="itemPercent" th:if="${planningGoods.currPrice != planningGoods.listPrice}" th:text="${(planningGoods.listPrice == 0 ? 0 : #numbers.formatDecimal((planningGoods.listPrice - planningGoods.currPrice) / (planningGoods.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 																			</p>
+																			<p th:if="${planningGoods.goodsType=='G056_D'}" class="itemPrice">
+																				[[${#numbers.formatInteger(planningGoods.currPrice,0,'COMMA')} + ' ~']]
+																			</p>
 																		</a>
 																	</div>
 																</div>
@@ -362,11 +374,14 @@
 											<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 											<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
 											<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
-											<p class="itemPrice">
+											<p th:unless="${goodsData.goodsType=='G056_D'}" class="itemPrice">
 												<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 												[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
 												<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>
 											</p>
+											<p th:if="${goodsData.goodsType=='G056_D'}" class="itemPrice">
+												[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')} + ' ~']]
+											</p>
 											<div class="itemcolorchip" th:if="${goodsData.colorArr != null}">
 												<th:block th:each="option, idx : ${goodsData.colorArr}" th:with="colorArray=${#strings.arraySplit(idx.current,':')}">
 													<span th:if="${colorArray[1]=='#FFFFFF'}" th:style="${'background-color:'+colorArray[1]+';border:1px solid #aaa;'}" class="chip_color" th:value="${colorArray[0]}"></span>

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

@@ -348,10 +348,12 @@
 																			<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + planningGoods.sysImgNm}" onerror="noneImg(this)">
 																		</div>
 																		<div class="itemName" th:text="${planningGoods.goodsNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
-																		<p class="itemPrice">[[${#numbers.formatInteger(planningGoods.currPrice,0,'COMMA')} + 원]]
+																		<p th:unless="${planningGoods.goodsType=='G056_D'}" class="itemPrice">[[${#numbers.formatInteger(planningGoods.currPrice,0,'COMMA')} + 원]]
 																			<span class="itemPrice_original" th:if="${planningGoods.currPrice != planningGoods.listPrice}" th:text="${#numbers.formatInteger(planningGoods.listPrice,1,'COMMA')}">89,000</span>
 																			<span class="itemPercent" th:if="${planningGoods.currPrice != planningGoods.listPrice}" th:text="${(planningGoods.listPrice == 0 ? 0 : #numbers.formatDecimal((planningGoods.listPrice - planningGoods.currPrice) / (planningGoods.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 																		</p>
+																		<p th:if="${planningGoods.goodsType=='G056_D'}" class="itemPrice">[[${#numbers.formatInteger(planningGoods.currPrice,0,'COMMA')} + '원 ~']]
+																		</p>
 																	</a>
 																</div>
 															</div>
@@ -391,10 +393,12 @@
 												<p class=" itemBrand" th:text="${goodsData.brandGroupNm}"></p>
 												<div class="itemName" th:text="${goodsData.goodsFullNm}"></div>
 												<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
-												<p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')} + 원]]
+												<p th:unless="${goodsData.goodsType=='G056_D'}" 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=" 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>
 												</p>
+												<p th:if="${goodsData.goodsType=='G056_D'}" class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')} + '원 ~']]
+												</p>
 												<div class="itemcolorchip" th:if="${goodsData.colorArr != null}">
 													<th:block th:each="option, idx : ${goodsData.colorArr}" th:with="colorArray=${#strings.arraySplit(idx.current,':')}">
 														<span th:if="${colorArray[1]=='#FFFFFF'}" th:style="${'background-color:'+colorArray[1]+';border:1px solid #aaa;'}" class="chip_color" th:value="${colorArray[0]}"></span>