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

Merge branch 'develop' into card007

card007 4 лет назад
Родитель
Сommit
04b21f665b

+ 9 - 9
src/main/java/com/style24/front/biz/dao/TsfGoodsDao.java

@@ -378,6 +378,15 @@ public interface TsfGoodsDao {
 	 * @author gagamel
 	 * @date 2021. 3. 25
 	 */
+	Collection<Goods> getContentsCategoryGoodsList_old(Cate4Srch cate);
+	
+	/**
+	 * 컨텐츠카테고리상품 목록
+	 * @param cate - 카테고리 정보
+	 * @return
+	 * @author jmh
+	 * @date 2021. 8. 13
+	 */
 	Collection<Goods> getContentsCategoryGoodsList(Cate4Srch cate);
 
 	/**
@@ -535,13 +544,4 @@ public interface TsfGoodsDao {
 	 */
 	Collection<GoodsStock> getProductNoByGoodsColor(Goods goods);
 	
-
-	/**
-	 * 컨텐츠카테고리상품 목록
-	 * @param cate - 카테고리 정보
-	 * @return
-	 * @author gagamel
-	 * @date 2021. 3. 25
-	 */
-	Collection<Goods> getContentsCategoryGoodsList_TEST(Cate4Srch cate);
 }

+ 96 - 96
src/main/java/com/style24/front/biz/service/TsfDisplayService.java

@@ -553,6 +553,56 @@ public class TsfDisplayService {
 	 * @author bin2107
 	 * @date 2021. 3. 30
 	 */
+	public Collection<Contents> getContentsForGoods_old(Contents contents) {
+		Collection<Contents> contentsList = new ArrayList<>();
+		if(contents.getContentsLoc().equals("SMM007")){
+			contentsList = displayDao.getBrandpickTitleBrandList(contents);
+		}else{
+			contentsList = displayDao.getContentsList(contents);
+		}
+
+		Collection<Goods> goodsList = new ArrayList<>();
+		Cate4Srch tempContents = new Cate4Srch();
+		for (Contents data : contentsList) {
+			tempContents.setContentsLoc(data.getContentsLoc());
+			tempContents.setDispOrd(data.getDispOrd());
+			tempContents.setMaxRow(20);
+			tempContents.setCustNo(TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0);
+			if ("SMM007".equals(data.getContentsLoc())) {
+				if(!"".equals(data.getBrandGroupNo()) && !"null".equals(data.getBrandGroupNo()) && !data.getBrandGroupNo().equals(null)){
+					tempContents.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
+				}
+				data.setFrontGb(TsfSession.getFrontGb());
+				data.setBannerList(displayDao.getContentsBannerList(data));
+			}
+			goodsList = (goodsDao.getContentsCategoryGoodsList_old(tempContents));
+			if ("SMM007".equals(data.getContentsLoc())) {
+				int maxrow = 3;
+				if (goodsList == null || goodsList.size() < 3) {
+					Cate4Srch cate = new Cate4Srch();
+					cate.setSiteCd(TscConstants.Site.STYLE24.value());
+					cate.setCateGb(TsfConstants.CateGb.BYITEM.value());
+					cate.setFrontGb(data.getFrontGb());
+					cate.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
+					cate.setMaxRow(maxrow - goodsList.size());
+					goodsList.addAll(goodsDao.getContentsCategoryNewGoodsList(cate));
+				}
+			}
+			data.setGoodsList(goodsList);
+		}
+
+		log.info("getContentsForGoods contentsList.size()::{}", contentsList.size());
+
+		return contentsList;
+	}
+	
+	/**
+	 * 몰메인 MD PICK 목록
+	 * @param
+	 * @return
+	 * @author jmh
+	 * @date 2021. 8. 13
+	 */
 	public Collection<Contents> getContentsForGoods(Contents contents) {
 		Collection<Contents> contentsList = new ArrayList<>();
 		if(contents.getContentsLoc().equals("SMM007")){
@@ -603,6 +653,52 @@ public class TsfDisplayService {
 	 * @author bin2107
 	 * @date 2021. 4. 9
 	 */
+	public Collection<Contents> getBestItemForGoods_old(Contents contents) {
+		contents.setContentsLoc("SCM003");
+		contents.setCateNo(null);
+		Collection<Contents> contentsList = displayDao.getBestItemCategoryList(contents);
+		Cate4Srch tempCate = new Cate4Srch();
+
+		for (Contents data : contentsList) {
+			tempCate.setContentsLoc(data.getContentsLoc());
+			tempCate.setMaxRow(10);
+			tempCate.setCustNo(TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0);
+			tempCate.setCateNo(data.getCateNo());
+			tempCate.setSiteCd(data.getSiteCd());
+			tempCate.setCateGb(data.getCateGb());
+			Collection<Goods> cateGoodsList = goodsDao.getContentsCategoryGoodsList_old(tempCate);
+			if(10 > cateGoodsList.size()){
+				//TODO : 추천솔루션
+				int cnt = 0;
+				cnt = 10 - cateGoodsList.size();
+
+				Collection<Eigeneai.Result> itemList = eigeneaiApi.getCategoryWeeklySellBestGoodsList(cnt, data.getCateNo());
+				for(Eigeneai.Result tempData : itemList){
+					Goods tempBest = new Goods();
+					tempBest.setBrandGroupNm(tempData.getProduct().getBrandName());
+					tempBest.setGoodsCd(tempData.getProduct().getItemId());
+					tempBest.setGoodsFullNm(tempData.getProduct().getItemName());
+					tempBest.setListPrice((int) tempData.getProduct().getOriginalPrice());
+					tempBest.setCurrPrice((int) tempData.getProduct().getSalePrice());
+					tempBest.setSysImgNm(tempData.getProduct().getItemImage());
+					tempBest.setItemUrl(tempData.getProduct().getItemUrl());
+					cateGoodsList.add(tempBest);
+				}
+			}
+
+			data.setGoodsList(cateGoodsList);
+		}
+
+		return contentsList;
+	}
+	
+	/**
+	 * 몰메인 BESTITEM 목록
+	 * @param
+	 * @return
+	 * @author jmh
+	 * @date 2021. 8. 13
+	 */
 	public Collection<Contents> getBestItemForGoods(Contents contents) {
 		contents.setContentsLoc("SCM003");
 		contents.setCateNo(null);
@@ -983,101 +1079,5 @@ public class TsfDisplayService {
 	public Collection<Contents> getBrandpickTitleBrandList(Contents contents) {
 		return displayDao.getBrandpickTitleBrandList(contents);
 	}
-
 	
-	/**
-	 * 몰메인 BESTITEM 목록 - 테스트
-	 * @param
-	 * @return
-	 * @author jmh
-	 * @date 2021. 8. 4
-	 */
-	public Collection<Contents> getBestItemForGoods_TEST(Contents contents) {
-		contents.setContentsLoc("SCM003");
-		contents.setCateNo(null);
-		Collection<Contents> contentsList = displayDao.getBestItemCategoryList(contents);
-		Cate4Srch tempCate = new Cate4Srch();
-
-		for (Contents data : contentsList) {
-			tempCate.setContentsLoc(data.getContentsLoc());
-			tempCate.setMaxRow(10);
-			tempCate.setCustNo(TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0);
-			tempCate.setCateNo(data.getCateNo());
-			tempCate.setSiteCd(data.getSiteCd());
-			tempCate.setCateGb(data.getCateGb());
-			Collection<Goods> cateGoodsList = goodsDao.getContentsCategoryGoodsList_TEST(tempCate);
-			if(10 > cateGoodsList.size()){
-				//TODO : 추천솔루션
-				int cnt = 0;
-				cnt = 10 - cateGoodsList.size();
-
-				Collection<Eigeneai.Result> itemList = eigeneaiApi.getCategoryWeeklySellBestGoodsList(cnt, data.getCateNo());
-				for(Eigeneai.Result tempData : itemList){
-					Goods tempBest = new Goods();
-					tempBest.setBrandGroupNm(tempData.getProduct().getBrandName());
-					tempBest.setGoodsCd(tempData.getProduct().getItemId());
-					tempBest.setGoodsFullNm(tempData.getProduct().getItemName());
-					tempBest.setListPrice((int) tempData.getProduct().getOriginalPrice());
-					tempBest.setCurrPrice((int) tempData.getProduct().getSalePrice());
-					tempBest.setSysImgNm(tempData.getProduct().getItemImage());
-					tempBest.setItemUrl(tempData.getProduct().getItemUrl());
-					cateGoodsList.add(tempBest);
-				}
-			}
-
-			data.setGoodsList(cateGoodsList);
-		}
-
-		return contentsList;
-	}
-	
-	/**
-	 * 몰메인 MD PICK 목록 테스트
-	 * @param
-	 * @return
-	 * @author bin2107
-	 * @date 2021. 3. 30
-	 */
-	public Collection<Contents> getContentsForGoods_TEST(Contents contents) {
-		Collection<Contents> contentsList = new ArrayList<>();
-		if(contents.getContentsLoc().equals("SMM007")){
-			contentsList = displayDao.getBrandpickTitleBrandList(contents);
-		}else{
-			contentsList = displayDao.getContentsList(contents);
-		}
-
-		Collection<Goods> goodsList = new ArrayList<>();
-		Cate4Srch tempContents = new Cate4Srch();
-		for (Contents data : contentsList) {
-			tempContents.setContentsLoc(data.getContentsLoc());
-			tempContents.setDispOrd(data.getDispOrd());
-			tempContents.setMaxRow(20);
-			tempContents.setCustNo(TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0);
-			if ("SMM007".equals(data.getContentsLoc())) {
-				if(!"".equals(data.getBrandGroupNo()) && !"null".equals(data.getBrandGroupNo()) && !data.getBrandGroupNo().equals(null)){
-					tempContents.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
-				}
-				data.setFrontGb(TsfSession.getFrontGb());
-				data.setBannerList(displayDao.getContentsBannerList(data));
-			}
-			goodsList = (goodsDao.getContentsCategoryGoodsList_TEST(tempContents));
-			if ("SMM007".equals(data.getContentsLoc())) {
-				int maxrow = 3;
-				if (goodsList == null || goodsList.size() < 3) {
-					Cate4Srch cate = new Cate4Srch();
-					cate.setSiteCd(TscConstants.Site.STYLE24.value());
-					cate.setCateGb(TsfConstants.CateGb.BYITEM.value());
-					cate.setFrontGb(data.getFrontGb());
-					cate.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
-					cate.setMaxRow(maxrow - goodsList.size());
-					goodsList.addAll(goodsDao.getContentsCategoryNewGoodsList(cate));
-				}
-			}
-			data.setGoodsList(goodsList);
-		}
-
-		log.info("getContentsForGoods contentsList.size()::{}", contentsList.size());
-
-		return contentsList;
-	}
 }

+ 80 - 81
src/main/java/com/style24/front/biz/service/TsfGoodsService.java

@@ -1013,7 +1013,7 @@ public class TsfGoodsService {
 	 * @author gagamel
 	 * @since 2021. 3. 25
 	 */
-	public Collection<Goods> getContentsCategoryGoodsList(Cate4Srch cate) {
+	public Collection<Goods> getContentsCategoryGoodsList_old(Cate4Srch cate) {
 		cate.setSiteCd(TscConstants.Site.STYLE24.value());
 		cate.setFrontGb(TsfSession.getFrontGb());
 		cate.setCustGb(TsfSession.getCustGb());
@@ -1027,7 +1027,7 @@ public class TsfGoodsService {
 				maxRow = 3;
 			}
 
-			goodsList = goodsDao.getContentsCategoryGoodsList(cate);
+			goodsList = goodsDao.getContentsCategoryGoodsList_old(cate);
 
 			// 조회된 데이터가 없거나 건수가 20개 미만이면 신규상품(=정상상품) 조회
 			if (goodsList == null || goodsList.size() < maxRow) {
@@ -1058,7 +1058,7 @@ public class TsfGoodsService {
 			// TODO: 추천솔루션
 			int dispCnt = cate.getMaxRow();
 
-			goodsList = goodsDao.getContentsCategoryGoodsList(cate);
+			goodsList = goodsDao.getContentsCategoryGoodsList_old(cate);
 			// 수동설정 데이터 없거나 노출갯수보다 작으면 추천솔루션 데이터 표출
 			if(dispCnt > goodsList.size()){
 				int cnt = 0;
@@ -1127,91 +1127,20 @@ public class TsfGoodsService {
 				}
 			}
 		} else {
-			goodsList = goodsDao.getContentsCategoryGoodsList(cate);
+			goodsList = goodsDao.getContentsCategoryGoodsList_old(cate);
 		}
 
 		return goodsList;
 	}
-
-	/**
-	 * ep쿠폰 다운 처리
-	 *
-	 * @param coupon
-	 * @return int
-	 * @author eskim
-	 * @since 2021.04.15
-	 */
-	@Transactional("shopTxnManager")
-	public String createEpCoupon(Goods goods) {
-		return couponService.createEpCoupon(goods);
-	}
-
-	/**
-	 * 카테고리별 상품수
-	 * @param params - 검색엔진 정보
-	 * @return
-	 * @author bin2107
-	 * @date 2021. 4. 7
-	 */
-	public int getCategoryGoodsCount(SearchEngine params) {
-		return goodsDao.getCategoryGoodsCount(params);
-	}
-
-	/**
-	 * 카테고리별 상품 목록
-	 * @param params - 검색엔진 정보
-	 * @return
-	 * @author bin2107
-	 * @date 2021. 4. 8
-	 */
-	public Collection<SearchEngine> getCategoryGoodsList(SearchEngine params) {
-		return goodsDao.getCategoryGoodsList(params);
-	}
-
-	/**
-	 * 검색상품 총건수
-	 * @param params - 검색엔진 정보
-	 * @return
-	 * @author gagamel
-	 * @date 2021. 5. 6
-	 */
-	public int getSearchGoodsCount(SearchEngine params) {
-		return goodsDao.getSearchGoodsCount(params);
-	}
-
-	/**
-	 * 검색상품 목록
-	 * @param params - 검색엔진 정보
-	 * @return
-	 * @author gagamel
-	 * @date 2021. 5. 6
-	 */
-	public Collection<SearchEngine> getSearchGoodsList(SearchEngine params) {
-		return goodsDao.getSearchGoodsList(params);
-	}
-	
-	
-	/**
-	 * 상품 다른 색상의 productno 찾기
-	 * @param goods - 상품정보
-	 * @return
-	 * @author eskim
-	 * @date 2021. 7. 28
-	 */
-	public Collection<GoodsStock> getProductNoByGoodsColor(Goods goods) {
-		return goodsDao.getProductNoByGoodsColor(goods);
-	}
-
-	
 	
 	/**
 	 * 컨텐츠카테고리상품 목록
 	 * @param cate - 카테고리 정보
 	 * @return
-	 * @author gagamel
-	 * @since 2021. 3. 25
+	 * @author jmh
+	 * @since 2021. 8. 13
 	 */
-	public Collection<Goods> getContentsCategoryGoodsList_TEST(Cate4Srch cate) {
+	public Collection<Goods> getContentsCategoryGoodsList(Cate4Srch cate) {
 		cate.setSiteCd(TscConstants.Site.STYLE24.value());
 		cate.setFrontGb(TsfSession.getFrontGb());
 		cate.setCustGb(TsfSession.getCustGb());
@@ -1225,7 +1154,7 @@ public class TsfGoodsService {
 				maxRow = 3;
 			}
 
-			goodsList = goodsDao.getContentsCategoryGoodsList_TEST(cate);
+			goodsList = goodsDao.getContentsCategoryGoodsList(cate);
 
 			// 조회된 데이터가 없거나 건수가 20개 미만이면 신규상품(=정상상품) 조회
 			if (goodsList == null || goodsList.size() < maxRow) {
@@ -1256,7 +1185,7 @@ public class TsfGoodsService {
 			// TODO: 추천솔루션
 			int dispCnt = cate.getMaxRow();
 
-			goodsList = goodsDao.getContentsCategoryGoodsList_TEST(cate);
+			goodsList = goodsDao.getContentsCategoryGoodsList(cate);
 			// 수동설정 데이터 없거나 노출갯수보다 작으면 추천솔루션 데이터 표출
 			if(dispCnt > goodsList.size()){
 				int cnt = 0;
@@ -1325,9 +1254,79 @@ public class TsfGoodsService {
 				}
 			}
 		} else {
-			goodsList = goodsDao.getContentsCategoryGoodsList_TEST(cate);
+			goodsList = goodsDao.getContentsCategoryGoodsList(cate);
 		}
 
 		return goodsList;
 	}
+
+	/**
+	 * ep쿠폰 다운 처리
+	 *
+	 * @param coupon
+	 * @return int
+	 * @author eskim
+	 * @since 2021.04.15
+	 */
+	@Transactional("shopTxnManager")
+	public String createEpCoupon(Goods goods) {
+		return couponService.createEpCoupon(goods);
+	}
+
+	/**
+	 * 카테고리별 상품수
+	 * @param params - 검색엔진 정보
+	 * @return
+	 * @author bin2107
+	 * @date 2021. 4. 7
+	 */
+	public int getCategoryGoodsCount(SearchEngine params) {
+		return goodsDao.getCategoryGoodsCount(params);
+	}
+
+	/**
+	 * 카테고리별 상품 목록
+	 * @param params - 검색엔진 정보
+	 * @return
+	 * @author bin2107
+	 * @date 2021. 4. 8
+	 */
+	public Collection<SearchEngine> getCategoryGoodsList(SearchEngine params) {
+		return goodsDao.getCategoryGoodsList(params);
+	}
+
+	/**
+	 * 검색상품 총건수
+	 * @param params - 검색엔진 정보
+	 * @return
+	 * @author gagamel
+	 * @date 2021. 5. 6
+	 */
+	public int getSearchGoodsCount(SearchEngine params) {
+		return goodsDao.getSearchGoodsCount(params);
+	}
+
+	/**
+	 * 검색상품 목록
+	 * @param params - 검색엔진 정보
+	 * @return
+	 * @author gagamel
+	 * @date 2021. 5. 6
+	 */
+	public Collection<SearchEngine> getSearchGoodsList(SearchEngine params) {
+		return goodsDao.getSearchGoodsList(params);
+	}
+	
+	
+	/**
+	 * 상품 다른 색상의 productno 찾기
+	 * @param goods - 상품정보
+	 * @return
+	 * @author eskim
+	 * @date 2021. 7. 28
+	 */
+	public Collection<GoodsStock> getProductNoByGoodsColor(Goods goods) {
+		return goodsDao.getProductNoByGoodsColor(goods);
+	}
+
 }

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

@@ -335,7 +335,7 @@ public class TsfDisplayController extends TsfBaseController {
 					cate4Srch.setMaxRow(20);
 				}
 
-				Collection<Goods> goodsList = goodsService.getContentsCategoryGoodsList_TEST(cate4Srch);
+				Collection<Goods> goodsList = goodsService.getContentsCategoryGoodsList_old(cate4Srch);
 				mainLayout.setGoodsList(goodsList);
 
 				if ("A".equals(mainLayout.getContentsYn())) {
@@ -345,7 +345,7 @@ public class TsfDisplayController extends TsfBaseController {
 
 			if (contentsLoc.equals("SMM004")) {
 				contents.setPageGb("MALL");
-				mainLayout.setBestItemList(displayService.getBestItemForGoods_TEST(contents));
+				mainLayout.setBestItemList(displayService.getBestItemForGoods_old(contents));
 			}
 
 			if (contentsLoc.equals("SMM006")) {
@@ -357,19 +357,19 @@ public class TsfDisplayController extends TsfBaseController {
 			}
 
 			if (contentsLoc.equals("SMM007")) {
-				mainLayout.setBrandPickList(displayService.getContentsForGoods_TEST(contents));
+				mainLayout.setBrandPickList(displayService.getContentsForGoods_old(contents));
 			}
 
 			if (contentsLoc.equals("SMM009") || contentsLoc.equals("SMM012")) {
 				if (contentsLoc.equals("SMM009")) {
 					contents.setMaxRow(5);
 				}
-				mainLayout.setMdPickList(displayService.getContentsForGoods_TEST(contents));
+				mainLayout.setMdPickList(displayService.getContentsForGoods_old(contents));
 			}
 
 			if (contentsLoc.equals("SMM003") || contentsLoc.equals("SBM007")) {
 				if (Integer.parseInt(mainLayout.getContentsCnt()) > 0) {
-					mainLayout.setNewItemList(displayService.getContentsForGoods_TEST(contents));
+					mainLayout.setNewItemList(displayService.getContentsForGoods_old(contents));
 				} else {
 					mainLayout.setNewItemList(displayService.getMainNewGoodsList(contents));
 				}

+ 9 - 5
src/main/java/com/style24/front/support/interceptor/TsfGoodsViewInterceptor.java

@@ -43,11 +43,15 @@ public class TsfGoodsViewInterceptor extends HandlerInterceptorAdapter {
 		// Parameter
 		GagaMap params = GagaParameterUtil.getParameterMap(request);
 
-		// 상품뷰이력 생성
-		goodsService.createGoodsViewHst(params.getString("goodsCd"), params.getString("ithrCd"));
-
-		// 최근본상품 생성
-		recentlyGoodsService.createRecentlyGoods(params.getString("goodsCd"));
+		try {
+			// 상품뷰이력 생성
+			goodsService.createGoodsViewHst(params.getString("goodsCd"), params.getString("ithrCd"));
+
+			// 최근본상품 생성
+			recentlyGoodsService.createRecentlyGoods(params.getString("goodsCd"));
+		} catch (Exception e) {
+			// Do nothing
+		}
 
 		// SSL Server
 		boolean isSslServer = Boolean.parseBoolean(hasSsl);

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

@@ -154,7 +154,14 @@
 		                  GROUP BY GOODS_CD )
 		            END) AS STOCK_QTY
 		     , (CASE WHEN G.SELF_GOODS_YN ='Y' AND IFNULL(DS.GOODS_CD, 'Y') = 'Y' THEN 'Y' ELSE 'N' END ) AS QUIK_DELV_YN
-		     , GS.REVIEW_REG_CNT
+		     , GS.REVIEW_REG_CNT + (SELECT COUNT(1)
+		                            FROM   TB_REVIEW Z
+		                            WHERE  1=1
+		                            AND    Z.GOODS_CD = GS.GOODS_CD
+		                            AND    Z.DISP_YN = 'Y'
+		                            AND    Z.DEL_YN = 'N'
+		                            AND    Z.CONFIRM_YN = 'Y'
+		                            AND    Z.REG_DT BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL + 1 DAY)) AS REVIEW_REG_CNT
 		     , GS.SCORE
 		     , GS.SCORE_SIZE1
 		     , GS.SCORE_SIZE2
@@ -286,7 +293,7 @@
 		           , O.OPT_CD1
 		           , SUM(CASE WHEN O.SOLDOUT_YN = 'Y' THEN 0
 		                      WHEN VS.CURR_STOCK_QTY  <![CDATA[<=]]> 0 THEN 0
-		                      WHEN VS.CURR_STOCK_QTY - G.MIN_ORD_QTY >= 0 THEN VS.CURR_STOCK_QTY
+		                      WHEN VS.CURR_STOCK_QTY >= G.MIN_ORD_QTY THEN VS.CURR_STOCK_QTY
 		                      ELSE 0 END) AS STOCK_QTY
 		           , IFNULL(GC.QTY , 1) AS QTY
 		      FROM TB_GOODS G
@@ -343,7 +350,7 @@
 		     , IFNULL(C.COLOR_KNM, B.OPT_CD1) AS OPT_CD1_NM
 		     , OPT_CD2
 		     , ADD_PRICE 
-		     , (CASE WHEN STOCK_QTY - MIN_ORD_QTY >= 0 THEN STOCK_QTY
+		     , (CASE WHEN STOCK_QTY >= MIN_ORD_QTY THEN STOCK_QTY
 		             ELSE 0
 		        END ) AS STOCK_QTY
 		     , SOLDOUT_YN
@@ -393,7 +400,7 @@
 		     , OPT_CD2
 		     , CONCAT(OPT_CD1,'/', OPT_CD2) AS OPT_NM
 		     , ADD_PRICE 
-		     , (CASE WHEN STOCK_QTY - MIN_ORD_QTY >= 0 THEN STOCK_QTY
+		     , (CASE WHEN STOCK_QTY >= MIN_ORD_QTY THEN STOCK_QTY
 		             ELSE 0
 		        END ) AS STOCK_QTY
 		     , SOLDOUT_YN
@@ -505,7 +512,14 @@
 		        WHERE GOODS_CD = G.GOODS_CD
 		        GROUP BY GOODS_CD 
 		        ) AS STOCK_QTY
-		     , GS.REVIEW_REG_CNT
+		     , GS.REVIEW_REG_CNT + (SELECT COUNT(1)
+		                            FROM   TB_REVIEW Z
+		                            WHERE  1=1
+		                            AND    Z.GOODS_CD = GS.GOODS_CD
+		                            AND    Z.DISP_YN = 'Y'
+		                            AND    Z.DEL_YN = 'N'
+		                            AND    Z.CONFIRM_YN = 'Y'
+		                            AND    Z.REG_DT BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL + 1 DAY)) AS REVIEW_REG_CNT
 		     , GS.GOODS_QNA_CNT
 		FROM TB_GOODS_COMPOSE C
 		INNER JOIN TB_GOODS G ON C.COMPS_GOODS_CD = G.GOODS_CD
@@ -682,7 +696,7 @@
 	<!-- 상품 사이즈 선택 시 재고수량 가져오기 -->
 	<select id="getGoodsStockQty_ORG"  parameterType="GoodsStock" resultType="int">
 		/* TsfGoods.getGoodsStockQty_ORG */
-		SELECT (CASE WHEN STOCK_QTY - MIN_ORD_QTY >= 0 THEN STOCK_QTY
+		SELECT (CASE WHEN STOCK_QTY >= MIN_ORD_QTY THEN STOCK_QTY
 		             ELSE 0 END ) AS STOCK_QTY
 		FROM ( 
 		    SELECT CASE WHEN A.SOLDOUT_YN = 'Y' THEN 0
@@ -723,7 +737,7 @@
 	<!-- 상품 사이즈  매장 쵀대 재고수량 가져오기 -->
 	<select id="getGoodsStoreStockQty"  parameterType="GoodsStock" resultType="int">
 		/* TsfGoods.getGoodsStoreStockQty */
-		SELECT CASE WHEN STORE_MAX_QTY - MIN_ORD_QTY >= 0 THEN STORE_MAX_QTY
+		SELECT CASE WHEN STORE_MAX_QTY >= MIN_ORD_QTY THEN STORE_MAX_QTY
 		            ELSE 0 END
 		FROM (
 		    SELECT (CASE
@@ -1428,8 +1442,8 @@
 	</select>
 	
 	<!-- 컨텐츠카테고리상품 목록 -->
-	<select id="getContentsCategoryGoodsList"  parameterType="Cate4Srch" resultType="Goods">
-		/* TsfGoods.getContentsCategoryGoodsList */
+	<select id="getContentsCategoryGoodsList_old"  parameterType="Cate4Srch" resultType="Goods">
+		/* TsfGoods.getContentsCategoryGoodsList_old */
 		WITH TAB_GOODS AS (
 		    SELECT
 		           <if test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SOM002'">
@@ -1691,6 +1705,211 @@
 		                             AND W.CUST_NO = #{custNo}
 		</if>
 	</select>
+	
+	<!-- 컨텐츠카테고리상품 목록 -->
+	<select id="getContentsCategoryGoodsList"  parameterType="Cate4Srch" resultType="Goods">
+	/* TsfGoods.getContentsCategoryGoodsList */
+		SELECT
+	           <if test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SOM002'">
+				   DISTINCT
+			   </if>
+	           G.BRAND_GROUP_NM     /*브랜드그룹명*/
+	         , G.GOODS_CD           /*상품코드*/
+	         , G.GOODS_NM           /*상품명*/
+	         , G.GOODS_FULL_NM
+	         , G.GOODS_GB           /*상품구분*/
+	         , G.SELF_GOODS_YN      /*자사상품여부*/
+	         , G.FOREIGN_BUY_YN     /*해외구매대행여부*/
+	         , G.PARALLEL_IMPORT_YN /*병행수입여부*/
+	         , G.ORDER_MADE_YN      /*주문제작여부*/
+	         , G.GOODS_TNM          /*상품타이틀명*/
+	         , G.MAIN_COLOR_CD      /*대표색상코드*/
+	         , G.LIST_PRICE         /*정상가(최초판매가)*/
+	         , FN_GET_BENEFIT_PRICE(#{frontGb},G.GOODS_CD,G.CURR_PRICE,#{custGb}) AS CURR_PRICE         /*현재판매가*/
+	         , G.REG_DT             /*등록일시*/
+	         , G.DISP_ORD
+	         , G.SYS_IMG_NM
+	         , G.SYS_IMG_NM2
+	         , G.VIDEOS
+	         <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
+	         , G.SELL_WEEK_QTY
+	         </if>
+	         <choose>
+	         <when test="custNo != null and custNo > 0"> <!-- 로그인 했으면 -->
+		     , IF(W.GOODS_CD IS NULL,'','likeit')                                                           AS LIKE_IT       /*위시리스트담긴상품*/
+		         </when>
+		         <otherwise>
+		     , ''                                                                                           AS LIKE_IT       /*위시리스트담긴상품*/
+		         </otherwise>
+		     </choose>
+	    FROM   (
+	            SELECT
+	                   <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
+	                      DISTINCT
+	                   </if>
+	                   TT.BRAND_GROUP_NM 									     /*브랜드그룹명*/
+	                 , TT.GOODS_CD                                               /*상품코드*/
+	                 , TT.GOODS_NM                                               /*상품명*/
+	                 , TT.GOODS_FULL_NM
+	                 , TT.GOODS_GB                                               /*상품구분*/
+	                 , TT.SELF_GOODS_YN      /*자사상품여부*/
+	                 , TT.FOREIGN_BUY_YN                                         /*해외구매대행여부*/
+	                 , TT.PARALLEL_IMPORT_YN                                     /*병행수입여부*/
+	                 , TT.ORDER_MADE_YN                                          /*주문제작여부*/
+	                 , TT.GOODS_TNM                                              /*상품타이틀명*/
+	                 , TT.MAIN_COLOR_CD                                          /*대표색상코드*/
+	                 , TT.LIST_PRICE                                             /*정상가(최초판매가)*/
+	                 , TT.CURR_PRICE                                             /*현재판매가*/
+	                 , TT.REG_DT                                                 /*등록일시*/
+	                 , TT.UPD_DT
+	                 , TT.SYS_IMG_NM
+			         , TT.SYS_IMG_NM2
+			         , TT.VIDEOS
+	            <choose>
+	                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'">
+	                 , CT.DISP_ORD
+	                </when>
+	                <when test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'">
+	                , CTG.DISP_ORD
+	                </when>
+	                 <otherwise>
+	                 , CG.DISP_ORD
+	                 </otherwise>
+	            </choose>
+	            <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
+	                 , GS.SELL_WEEK_QTY
+	                 , CT.CATE_NO AS CATE1_NO
+	            </if>
+	            <choose>
+	                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012' or contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'"> <!-- md추천 -->
+	                    FROM	TB_CONTENTS CT
+	                    , TB_CONTENTS_GOODS CTG
+	                    , TB_CONTENTS_GOODS_MAIN TT
+	                    
+	                    <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
+	                    , TB_GOODS_SUMMARY GS
+	                    </if>
+	                    WHERE	1=1
+	                    AND     CT.CONTENTS_LOC = CTG.CONTENTS_LOC
+	                    AND 	CT.DISP_ORD = CTG.CONTENTS_SQ
+	                    <if test="contentsLoc == 'SCM003' or contentsLoc == 'SCM002'">
+	                    AND    CT.CATE_NO = CTG.CATE_NO
+	                    </if>
+	                    <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'"> <!-- 베스트 -->
+	                    AND    CTG.GOODS_CD = GS.GOODS_CD
+	                    </if>
+	                    AND		CTG.GOODS_CD = TT.GOODS_CD
+	                    AND		CT.CONTENTS_LOC = #{contentsLoc}
+	                    <if test="contentsLoc == 'SMM009' or contentsLoc == 'SMM012'">
+	                    AND 	CTG.CONTENTS_SQ = #{dispOrd}
+	                    </if>
+	                    <if test="contentsLoc == 'SMM007'">
+	                    AND		CT.BRAND_GROUP_NO = #{brandGroupNo}
+	                    </if>
+	                    <if test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'">
+	                        <if test="brandGroupNo != null and brandGroupNo != ''">
+	                        AND		CTG.BRAND_GROUP_NO = #{brandGroupNo}
+	                        </if>
+	                      AND CT.CONTENTS_SQ IN ( SELECT TMP.CONTENTS_SQ FROM (SELECT A.CONTENTS_SQ FROM TB_CONTENTS A WHERE 1=1 AND A.CONTENTS_LOC = #{contentsLoc} AND NOW() BETWEEN A.DISP_STDT AND A.DISP_EDDT
+	                                                                                    <if test="brandGroupNo != null and brandGroupNo != ''">
+	                                                                                        AND A.BRAND_GROUP_NO = #{brandGroupNo}
+	                                                                                    </if>
+	                                                                                    <if test="contentsLoc=='SCM003'">
+	                                                                                        <if test="cateNo != null and cateNo != ''">
+	                                                                                        AND A.CATE_NO = #{cateNo}
+	                                                                                        </if>
+	                                                                                    </if>
+	                                                                                    <if test="contentsLoc=='SCM002'">
+	                                                                                        <if test="cate1No != null and cate1No != ''">
+	                                                                                            AND A.CATE_NO = #{cate1No}
+	                                                                                        </if>
+	                                                                                    </if>
+	                                                                                    <if test="pageGb != null and pageGb == 'BEST'">
+	                                                                                        <if test="cate1No != null and cate1No != ''">
+	                                                                                        AND A.CATE_NO = #{cate1No}
+	                                                                                        </if>
+	                                                                                    </if>
+	                                                                                    AND A.USE_YN = 'Y' ORDER BY A.DISP_ORD
+	                                                                                    LIMIT 1
+	                                                                          ) AS TMP
+	                                                              )
+	                    </if>
+	                    AND		NOW() BETWEEN CT.DISP_STDT AND CT.DISP_EDDT
+	                </when>
+	                <otherwise>
+	                    FROM   TB_CATE_4SRCH C4
+	                    , TB_CATE_GOODS CG
+	                    , TB_CONTENTS_GOODS_MAIN TT
+	                    
+	                    <if test="contentsLoc == 'SCM003'"> <!-- 베스트 -->
+	                    , TB_GOODS_SUMMARY GS
+	                    </if>
+	                    WHERE  C4.LEAF_CATE_NO = CG.CATE_NO
+	                    <choose>
+	                        <when test="brandGroupNo != null and brandGroupNo != ''">
+	                    AND    CG.BRAND_GROUP_NO = #{brandGroupNo}
+	                        </when>
+	                        <otherwise>
+	                    AND    CG.BRAND_GROUP_NO = 0 /*브랜드메인에서 접근한 것이 아니면*/
+	                        </otherwise>
+	                    </choose>
+	                    AND    CG.GOODS_CD = TT.GOODS_CD
+	                    
+	                    <if test="contentsLoc == 'SCM003'"> <!-- 베스트 -->
+	                    AND    CG.GOODS_CD = GS.GOODS_CD
+                        </if>
+                        AND    C4.SITE_CD = #{siteCd}
+                        AND    C4.CATE_GB = #{cateGb}
+                        AND    C4.CATE_TYPE = 'G031_20' /*컨텐츠카테고리*/
+	                    <choose>
+	                        <when test="pageGb != null and pageGb == 'BEST'">
+	                            <if test="cate1No != null and cate1No != ''">
+	                            AND    C4.CATE1_NO = #{cate1No}
+	                            </if>
+	                        </when>
+	                        <otherwise>
+	                        AND    C4.CATE1_NO = #{cate1No}
+	                        </otherwise>
+	                    </choose>
+	                    AND    C4.CONTENTS_LOC = #{contentsLoc}
+	              </otherwise>
+	           </choose>
+	           
+	            <if test="pageGb != null and pageGb == 'BEST'">
+	            ORDER BY CT.CATE_NO
+	            LIMIT 100
+	            </if>
+	           ) G
+	           <if test="custNo != null and custNo > 0"> <!-- 로그인 했으면 -->
+				LEFT OUTER JOIN TB_WISHLIST W ON G.GOODS_CD = W.GOODS_CD
+				                             AND W.CUST_NO = #{custNo}
+			   </if>
+				   
+		    WHERE  1=1
+		<choose>
+		    <when test="contentsLoc == 'SCM013'"><!-- 베스트 -->
+		     ORDER BY G.SELL_WEEK_QTY DESC , G.GOODS_CD
+		    </when>
+		    <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'"> <!-- md추천 -->
+		    </when>
+		    <when test="contentsLoc == 'SCM002' or (contentsLoc == 'SCM003' and pageGb == null)"> <!-- md추천 -->
+		     ORDER BY G.DISP_ORD ,G.UPD_DT DESC, G.CURR_PRICE DESC, G.GOODS_CD ASC
+		    </when>
+		    <when test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
+		     ORDER BY G.CATE1_NO, G.DISP_ORD ,G.UPD_DT DESC, G.CURR_PRICE DESC, G.GOODS_CD ASC
+		    </when>
+		    <otherwise>
+		     ORDER BY G.DISP_ORD , G.REG_DT DESC , G.GOODS_CD
+		    </otherwise>
+		</choose>
+		<if test="pageable != null and pageable.endRow != null and pageable.endRow > 0">
+			LIMIT #{pageable.limitStartRow} , #{pageable.pageSize}
+		</if>
+		<if test="maxRow != null and maxRow !=''">
+		    LIMIT #{maxRow}
+		</if>
+		
+	</select>
 
 	<!-- 컨텐츠카테고리상품 건수 -->
 	<select id="getContentsCategoryGoodsCount"  parameterType="Cate4Srch" resultType="int">
@@ -2061,7 +2280,14 @@
 		               , G.FORMAL_GB                             /*정상이월구분*/
 		               , G.REG_DT                                /*등록일시*/
 		               , GS.SELL_WEEK_QTY                        /*주간판매수량*/
-		               , GS.REVIEW_REG_CNT                       /*리뷰등록건수*/
+		               , GS.REVIEW_REG_CNT + (SELECT COUNT(1)
+		                                      FROM   TB_REVIEW Z
+		                                      WHERE  1=1
+		                                      AND    Z.GOODS_CD = GS.GOODS_CD
+		                                      AND    Z.DISP_YN = 'Y'
+		                                      AND    Z.DEL_YN = 'N'
+		                                      AND    Z.CONFIRM_YN = 'Y'
+		                                      AND    Z.REG_DT BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL + 1 DAY)) AS REVIEW_REG_CNT /*리뷰등록건수*/
 		          FROM   TB_CATE_4SRCH C4
 		          INNER JOIN TB_CATE_GOODS CG ON C4.LEAF_CATE_NO = CG.CATE_NO
 		          INNER JOIN TB_GOODS G ON CG.GOODS_CD = G.GOODS_CD
@@ -2397,7 +2623,14 @@
 		                , G.FORMAL_GB                             /*정상이월구분*/
 		                , G.REG_DT                                /*등록일시*/
 		                , GS.SELL_WEEK_QTY                        /*주간판매수량*/
-		                , GS.REVIEW_REG_CNT                       /*리뷰등록건수*/
+		                , GS.REVIEW_REG_CNT + (SELECT COUNT(1)
+		                                       FROM   TB_REVIEW Z
+		                                       WHERE  1=1
+		                                       AND    Z.GOODS_CD = GS.GOODS_CD
+		                                       AND    Z.DISP_YN = 'Y'
+		                                       AND    Z.DEL_YN = 'N'
+		                                       AND    Z.CONFIRM_YN = 'Y'
+		                                       AND    Z.REG_DT BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL + 1 DAY)) AS REVIEW_REG_CNT                       /*리뷰등록건수*/
 		            FROM   TB_CATE_4SRCH C4
 		            INNER JOIN TB_CATE_GOODS CG ON C4.LEAF_CATE_NO = CG.CATE_NO
 		            INNER JOIN TB_GOODS G ON CG.GOODS_CD = G.GOODS_CD
@@ -2561,7 +2794,14 @@
 		               , G.FORMAL_GB                             /*정상이월구분*/
 		               , G.REG_DT                                /*등록일시*/
 		               , GS.SELL_WEEK_QTY                        /*주간판매수량*/
-		               , GS.REVIEW_REG_CNT                       /*리뷰등록건수*/
+		               , GS.REVIEW_REG_CNT + (SELECT COUNT(1)
+		                                      FROM   TB_REVIEW Z
+		                                      WHERE  1=1
+		                                      AND    Z.GOODS_CD = GS.GOODS_CD
+		                                      AND    Z.DISP_YN = 'Y'
+		                                      AND    Z.DEL_YN = 'N'
+		                                      AND    Z.CONFIRM_YN = 'Y'
+		                                      AND    Z.REG_DT BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL + 1 DAY)) AS REVIEW_REG_CNT                      /*리뷰등록건수*/
 		         FROM   TB_CATE_4SRCH C4
 		         INNER JOIN TB_CATE_GOODS CG ON C4.LEAF_CATE_NO = CG.CATE_NO
 		         INNER JOIN TB_GOODS G USE INDEX (`PRIMARY`, IX_GOODS_11) ON CG.GOODS_CD = G.GOODS_CD
@@ -2955,7 +3195,14 @@
 		                 , G.FORMAL_GB                             /*정상이월구분*/
 		                 , G.REG_DT                                /*등록일시*/
 		                 , GS.SELL_WEEK_QTY                        /*주간판매수량*/
-		                 , GS.REVIEW_REG_CNT                       /*리뷰등록건수*/
+		                 , GS.REVIEW_REG_CNT + (SELECT COUNT(1)
+		                                        FROM   TB_REVIEW Z
+		                                        WHERE  1=1
+		                                        AND    Z.GOODS_CD = GS.GOODS_CD
+		                                        AND    Z.DISP_YN = 'Y'
+		                                        AND    Z.DEL_YN = 'N'
+		                                        AND    Z.CONFIRM_YN = 'Y'
+		                                        AND    Z.REG_DT BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL + 1 DAY)) AS REVIEW_REG_CNT                      /*리뷰등록건수*/
 		            FROM   TB_GOODS G USE INDEX (IX_GOODS_11)
 		            INNER JOIN TB_GOODS_STOCK S ON G.GOODS_CD = S.GOODS_CD
 		            INNER JOIN TB_BRAND B ON G.BRAND_CD = B.BRAND_CD
@@ -3262,7 +3509,14 @@
 		                 , G.FORMAL_GB /*정상이월구분*/
 		                 , G.REG_DT /*등록일시*/
 		                 , GS.SELL_WEEK_QTY /*주간판매수량*/
-		                 , GS.REVIEW_REG_CNT /*리뷰등록건수*/
+		                 , GS.REVIEW_REG_CNT + (SELECT COUNT(1)
+		                                        FROM   TB_REVIEW Z
+		                                        WHERE  1=1
+		                                        AND    Z.GOODS_CD = GS.GOODS_CD
+		                                        AND    Z.DISP_YN = 'Y'
+		                                        AND    Z.DEL_YN = 'N'
+		                                        AND    Z.CONFIRM_YN = 'Y'
+		                                        AND    Z.REG_DT BETWEEN CURRENT_DATE() AND DATE_ADD(CURRENT_DATE(), INTERVAL + 1 DAY)) AS REVIEW_REG_CNT/*리뷰등록건수*/
 		            FROM TB_CATE_4SRCH C4
 		            INNER JOIN TB_CATE_GOODS CG ON C4.LEAF_CATE_NO = CG.CATE_NO
 		            INNER JOIN TB_GOODS G ON CG.GOODS_CD = G.GOODS_CD
@@ -3784,445 +4038,5 @@
 		AND   OPT_CD1 <![CDATA[<>]]>  #{colorCd}
 		AND   PRODUCT_NO IS NOT NULL
 	</select>
-	
-	
-	<!-- 컨텐츠카테고리상품 목록 (JMH 이선미매니저 테스트 요청)  -->
-	<select id="getContentsCategoryGoodsList_TEST_old"  parameterType="Cate4Srch" resultType="Goods">
-	/* TsfGoods.getContentsCategoryGoodsList_TEST_old */
-		WITH TAB_GOODS AS (
-		    SELECT
-		           <if test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SOM002'">
-					   DISTINCT
-				   </if>
-		           G.BRAND_GROUP_NM     /*브랜드그룹명*/
-		         , G.GOODS_CD           /*상품코드*/
-		         , G.GOODS_NM           /*상품명*/
-		         , G.GOODS_GB           /*상품구분*/
-		         , G.SELF_GOODS_YN      /*자사상품여부*/
-		         , G.FOREIGN_BUY_YN     /*해외구매대행여부*/
-		         , G.PARALLEL_IMPORT_YN /*병행수입여부*/
-		         , G.ORDER_MADE_YN      /*주문제작여부*/
-		         , G.GOODS_TNM          /*상품타이틀명*/
-		         , G.MAIN_COLOR_CD      /*대표색상코드*/
-		         , G.LIST_PRICE         /*정상가(최초판매가)*/
-		         , G.CURR_PRICE         /*현재판매가*/
-		         , G.REG_DT             /*등록일시*/
-		         , G.DISP_ORD
-		         <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-		         , G.SELL_WEEK_QTY
-		         </if>
-		    FROM   (
-		            SELECT
-		                   <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-		                      DISTINCT
-		                   </if>
-		                   TT.BRAND_GROUP_NM 									     /*브랜드그룹명*/
-		                 , TT.GOODS_CD                                               /*상품코드*/
-		                 , TT.GOODS_NM                                               /*상품명*/
-		                 , TT.GOODS_GB                                               /*상품구분*/
-		                 , TT.SELF_GOODS_YN      /*자사상품여부*/
-		                 , TT.FOREIGN_BUY_YN                                         /*해외구매대행여부*/
-		                 , TT.PARALLEL_IMPORT_YN                                     /*병행수입여부*/
-		                 , TT.ORDER_MADE_YN                                          /*주문제작여부*/
-		                 , TT.GOODS_TNM                                              /*상품타이틀명*/
-		                 , TT.MAIN_COLOR_CD                                          /*대표색상코드*/
-		                 , TT.LIST_PRICE                                             /*정상가(최초판매가)*/
-		                 , TT.CURR_PRICE                                             /*현재판매가*/
-		                 , TT.REG_DT                                                 /*등록일시*/
-		                 , TT.UPD_DT
-		            <choose>
-		                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'">
-		                 , CT.DISP_ORD
-		                </when>
-		                <when test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'">
-		                , CTG.DISP_ORD
-		                </when>
-		                 <otherwise>
-		                 , CG.DISP_ORD
-		                 </otherwise>
-		            </choose>
-		            <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-		                 , GS.SELL_WEEK_QTY
-		                 , CT.CATE_NO AS CATE1_NO
-		            </if>
-		            <choose>
-		                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012' or contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'"> <!-- md추천 -->
-		                    FROM	TB_CONTENTS CT
-		                    , TB_CONTENTS_GOODS CTG
-		                    , TB_CONTENTS_GOODS_MAIN TT
-		                    , TB_GOODS_STOCK S
-		                    
-		                    <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-		                    , TB_GOODS_SUMMARY GS
-		                    </if>
-		                    WHERE	1=1
-		                    AND     CT.CONTENTS_LOC = CTG.CONTENTS_LOC
-		                    AND 	CT.DISP_ORD = CTG.CONTENTS_SQ
-		                    <if test="contentsLoc == 'SCM003' or contentsLoc == 'SCM002'">
-		                    AND    CT.CATE_NO = CTG.CATE_NO
-		                    </if>
-		                    <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'"> <!-- 베스트 -->
-		                    AND    CTG.GOODS_CD = GS.GOODS_CD
-		                    </if>
-		                    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}
-		                    <if test="contentsLoc == 'SMM009' or contentsLoc == 'SMM012'">
-		                    AND 	CTG.CONTENTS_SQ = #{dispOrd}
-		                    </if>
-		                    <if test="contentsLoc == 'SMM007'">
-		                    AND		CT.BRAND_GROUP_NO = #{brandGroupNo}
-		                    </if>
-		                    <if test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'">
-		                        <if test="brandGroupNo != null and brandGroupNo != ''">
-		                        AND		CTG.BRAND_GROUP_NO = #{brandGroupNo}
-		                        </if>
-		                      AND CT.CONTENTS_SQ IN ( SELECT TMP.CONTENTS_SQ FROM (SELECT A.CONTENTS_SQ FROM TB_CONTENTS A WHERE 1=1 AND A.CONTENTS_LOC = #{contentsLoc} AND NOW() BETWEEN A.DISP_STDT AND A.DISP_EDDT
-		                                                                                    <if test="brandGroupNo != null and brandGroupNo != ''">
-		                                                                                        AND A.BRAND_GROUP_NO = #{brandGroupNo}
-		                                                                                    </if>
-		                                                                                    <if test="contentsLoc=='SCM003'">
-		                                                                                        <if test="cateNo != null and cateNo != ''">
-		                                                                                        AND A.CATE_NO = #{cateNo}
-		                                                                                        </if>
-		                                                                                    </if>
-		                                                                                    <if test="contentsLoc=='SCM002'">
-		                                                                                        <if test="cate1No != null and cate1No != ''">
-		                                                                                            AND A.CATE_NO = #{cate1No}
-		                                                                                        </if>
-		                                                                                    </if>
-		                                                                                    <if test="pageGb != null and pageGb == 'BEST'">
-		                                                                                        <if test="cate1No != null and cate1No != ''">
-		                                                                                        AND A.CATE_NO = #{cate1No}
-		                                                                                        </if>
-		                                                                                    </if>
-		                                                                                    AND A.USE_YN = 'Y' ORDER BY A.DISP_ORD
-		                                                                                    LIMIT 1
-		                                                                          ) AS TMP
-		                                                              )
-		                    </if>
-		                    AND		NOW() BETWEEN CT.DISP_STDT AND CT.DISP_EDDT
-		                </when>
-		                <otherwise>
-		                    FROM   TB_CATE_4SRCH C4
-		                    , TB_CATE_GOODS CG
-		                    , TB_CONTENTS_GOODS_MAIN TT
-		                    , TB_GOODS_STOCK S
-		                    
-		                    <if test="contentsLoc == 'SCM003'"> <!-- 베스트 -->
-		                    , TB_GOODS_SUMMARY GS
-		                    </if>
-		                    WHERE  C4.LEAF_CATE_NO = CG.CATE_NO
-		                    <choose>
-		                        <when test="brandGroupNo != null and brandGroupNo != ''">
-		                    AND    CG.BRAND_GROUP_NO = #{brandGroupNo}
-		                        </when>
-		                        <otherwise>
-		                    AND    CG.BRAND_GROUP_NO = 0 /*브랜드메인에서 접근한 것이 아니면*/
-		                        </otherwise>
-		                    </choose>
-		                    AND    CG.GOODS_CD = TT.GOODS_CD
-		                    AND    CG.GOODS_CD = S.GOODS_CD
-		                    
-		                    <if test="contentsLoc == 'SCM003'"> <!-- 베스트 -->
-		                    AND    CG.GOODS_CD = GS.GOODS_CD
-	                        </if>
-	                        AND    C4.SITE_CD = #{siteCd}
-	                        AND    C4.CATE_GB = #{cateGb}
-	                        AND    C4.CATE_TYPE = 'G031_20' /*컨텐츠카테고리*/
-		                    <choose>
-		                        <when test="pageGb != null and pageGb == 'BEST'">
-		                            <if test="cate1No != null and cate1No != ''">
-		                            AND    C4.CATE1_NO = #{cate1No}
-		                            </if>
-		                        </when>
-		                        <otherwise>
-		                        AND    C4.CATE1_NO = #{cate1No}
-		                        </otherwise>
-		                    </choose>
-		                    AND    C4.CONTENTS_LOC = #{contentsLoc}
-		              </otherwise>
-		           </choose>
-		           -- AND    G.GOODS_STAT = 'G008_90' /*승인완료상품*/
-		           -- AND    G.SELF_MALL_YN = 'Y'   /*몰노출상품*/
-		           -- AND    NOW() BETWEEN G.SELL_STDT AND G.SELL_EDDT   /*판매기간*/
-		            AND    S.STOCK_QTY <![CDATA[>]]> 0 /*재고있는상품*/
-		           -- AND    B.USE_YN = 'Y'
-		           -- AND    BG.USE_YN = 'Y'
-		            <if test="pageGb != null and pageGb == 'BEST'">
-		            ORDER BY CT.CATE_NO
-		            LIMIT 100
-		            </if>
-		           ) G
-		    WHERE  1=1
-		<choose>
-		    <when test="contentsLoc == 'SCM013'"><!-- 베스트 -->
-		     ORDER BY G.SELL_WEEK_QTY DESC , G.GOODS_CD
-		    </when>
-		    <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'"> <!-- md추천 -->
-		    </when>
-		    <when test="contentsLoc == 'SCM002' or (contentsLoc == 'SCM003' and pageGb == null)"> <!-- md추천 -->
-		     ORDER BY G.DISP_ORD ,G.UPD_DT DESC, G.CURR_PRICE DESC, G.GOODS_CD ASC
-		    </when>
-		    <when test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-		     ORDER BY G.CATE1_NO, G.DISP_ORD ,G.UPD_DT DESC, G.CURR_PRICE DESC, G.GOODS_CD ASC
-		    </when>
-		    <otherwise>
-		     ORDER BY G.DISP_ORD , G.REG_DT DESC , G.GOODS_CD
-		    </otherwise>
-		</choose>
-		<if test="pageable != null and pageable.endRow != null and pageable.endRow > 0">
-			LIMIT #{pageable.limitStartRow} , #{pageable.pageSize}
-		</if>
-		<if test="maxRow != null and maxRow !=''">
-		    LIMIT #{maxRow}
-		</if>
-		)
-		SELECT G.BRAND_GROUP_NM
-		     , 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.MAIN_COLOR_CD
-		     , G.LIST_PRICE
-		     , FN_GET_BENEFIT_PRICE(#{frontGb},G.GOODS_CD,G.CURR_PRICE,#{custGb})                           AS CURR_PRICE    /*현재판매가*/
-		     , (SELECT SYS_IMG_NM FROM TB_GOODS_IMG X WHERE X.GOODS_CD = G.GOODS_CD AND IF(G.SELF_GOODS_YN= 'N', 'XX', G.MAIN_COLOR_CD) = X.COLOR_CD AND DEFAULT_IMG_YN = 'Y' LIMIT 1) AS SYS_IMG_NM
-		     , (SELECT SYS_IMG_NM FROM TB_GOODS_IMG X WHERE X.GOODS_CD = G.GOODS_CD AND IF(G.SELF_GOODS_YN= 'N', 'XX', G.MAIN_COLOR_CD) = X.COLOR_CD AND MOUSEOVER_IMG_YN = 'Y' LIMIT 1) AS SYS_IMG_NM2
-		, (
-		      SELECT GROUP_CONCAT(CONCAT(VIDEO_GB,':',KMC_KEY) ORDER BY NUMB SEPARATOR ',')
-		      FROM   (
-		         SELECT GV.VIDEO_GB
-		              , GV.KMC_KEY
-		              , GV.REG_DT
-		              , RANK() OVER(ORDER BY GV.REG_DT, GV.KMC_KEY) AS NUMB
-		         FROM   TB_GOODS_VIDEO GV
-		         WHERE  GV.GOODS_CD = G.GOODS_CD
-		         AND    GV.DISP_YN = 'Y'
-		         AND    GV.KMC_KEY IS NOT NULL
-		      ) Z
-		      WHERE  NUMB  <![CDATA[<=]]>  2
-		   ) AS VIDEOS
-		   
-		     <choose>
-		         <when test="custNo != null and custNo > 0"> <!-- 로그인 했으면 -->
-		     , IF(W.GOODS_CD IS NULL,'','likeit')                                                           AS LIKE_IT       /*위시리스트담긴상품*/
-		         </when>
-		         <otherwise>
-		     , ''                                                                                           AS LIKE_IT       /*위시리스트담긴상품*/
-		         </otherwise>
-		     </choose>
-		FROM TAB_GOODS G
-		<if test="custNo != null and custNo > 0"> <!-- 로그인 했으면 -->
-		LEFT OUTER JOIN TB_WISHLIST W ON G.GOODS_CD = W.GOODS_CD
-		                             AND W.CUST_NO = #{custNo}
-		</if>
-	</select>
-
-	<!-- 컨텐츠카테고리상품 목록 (JMH 이선미매니저 테스트 요청)  -->
-	<select id="getContentsCategoryGoodsList_TEST"  parameterType="Cate4Srch" resultType="Goods">
-	/* TsfGoods.getContentsCategoryGoodsList_TEST2 */
-		SELECT
-	           <if test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SOM002'">
-				   DISTINCT
-			   </if>
-	           G.BRAND_GROUP_NM     /*브랜드그룹명*/
-	         , G.GOODS_CD           /*상품코드*/
-	         , G.GOODS_NM           /*상품명*/
-	         , G.GOODS_GB           /*상품구분*/
-	         , G.SELF_GOODS_YN      /*자사상품여부*/
-	         , G.FOREIGN_BUY_YN     /*해외구매대행여부*/
-	         , G.PARALLEL_IMPORT_YN /*병행수입여부*/
-	         , G.ORDER_MADE_YN      /*주문제작여부*/
-	         , G.GOODS_TNM          /*상품타이틀명*/
-	         , G.MAIN_COLOR_CD      /*대표색상코드*/
-	         , G.LIST_PRICE         /*정상가(최초판매가)*/
-	         , FN_GET_BENEFIT_PRICE(#{frontGb},G.GOODS_CD,G.CURR_PRICE,#{custGb}) AS CURR_PRICE         /*현재판매가*/
-	         , G.REG_DT             /*등록일시*/
-	         , G.DISP_ORD
-	         , G.SYS_IMG_NM
-	         , G.SYS_IMG_NM2
-	         , G.VIDEOS
-	         <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-	         , G.SELL_WEEK_QTY
-	         </if>
-	         <choose>
-	         <when test="custNo != null and custNo > 0"> <!-- 로그인 했으면 -->
-		     , IF(W.GOODS_CD IS NULL,'','likeit')                                                           AS LIKE_IT       /*위시리스트담긴상품*/
-		         </when>
-		         <otherwise>
-		     , ''                                                                                           AS LIKE_IT       /*위시리스트담긴상품*/
-		         </otherwise>
-		     </choose>
-	    FROM   (
-	            SELECT
-	                   <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-	                      DISTINCT
-	                   </if>
-	                   TT.BRAND_GROUP_NM 									     /*브랜드그룹명*/
-	                 , TT.GOODS_CD                                               /*상품코드*/
-	                 , TT.GOODS_NM                                               /*상품명*/
-	                 , TT.GOODS_GB                                               /*상품구분*/
-	                 , TT.SELF_GOODS_YN      /*자사상품여부*/
-	                 , TT.FOREIGN_BUY_YN                                         /*해외구매대행여부*/
-	                 , TT.PARALLEL_IMPORT_YN                                     /*병행수입여부*/
-	                 , TT.ORDER_MADE_YN                                          /*주문제작여부*/
-	                 , TT.GOODS_TNM                                              /*상품타이틀명*/
-	                 , TT.MAIN_COLOR_CD                                          /*대표색상코드*/
-	                 , TT.LIST_PRICE                                             /*정상가(최초판매가)*/
-	                 , TT.CURR_PRICE                                             /*현재판매가*/
-	                 , TT.REG_DT                                                 /*등록일시*/
-	                 , TT.UPD_DT
-	                 , TT.SYS_IMG_NM
-			         , TT.SYS_IMG_NM2
-			         , TT.VIDEOS
-	            <choose>
-	                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'">
-	                 , CT.DISP_ORD
-	                </when>
-	                <when test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'">
-	                , CTG.DISP_ORD
-	                </when>
-	                 <otherwise>
-	                 , CG.DISP_ORD
-	                 </otherwise>
-	            </choose>
-	            <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-	                 , GS.SELL_WEEK_QTY
-	                 , CT.CATE_NO AS CATE1_NO
-	            </if>
-	            <choose>
-	                <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012' or contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'"> <!-- md추천 -->
-	                    FROM	TB_CONTENTS CT
-	                    , TB_CONTENTS_GOODS CTG
-	                    , TB_CONTENTS_GOODS_MAIN TT
-	                    
-	                    <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-	                    , TB_GOODS_SUMMARY GS
-	                    </if>
-	                    WHERE	1=1
-	                    AND     CT.CONTENTS_LOC = CTG.CONTENTS_LOC
-	                    AND 	CT.DISP_ORD = CTG.CONTENTS_SQ
-	                    <if test="contentsLoc == 'SCM003' or contentsLoc == 'SCM002'">
-	                    AND    CT.CATE_NO = CTG.CATE_NO
-	                    </if>
-	                    <if test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'"> <!-- 베스트 -->
-	                    AND    CTG.GOODS_CD = GS.GOODS_CD
-	                    </if>
-	                    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}
-	                    <if test="contentsLoc == 'SMM009' or contentsLoc == 'SMM012'">
-	                    AND 	CTG.CONTENTS_SQ = #{dispOrd}
-	                    </if>
-	                    <if test="contentsLoc == 'SMM007'">
-	                    AND		CT.BRAND_GROUP_NO = #{brandGroupNo}
-	                    </if>
-	                    <if test="contentsLoc == 'SMM003' or contentsLoc == 'SBM007' or contentsLoc == 'SBM008' or contentsLoc == 'SBM009' or contentsLoc == 'SBM017' or contentsLoc == 'SBM018' or contentsLoc == 'SBM019' or contentsLoc == 'SOM003' or contentsLoc == 'SCM002' or contentsLoc == 'SCM003' or contentsLoc == 'SOM002'">
-	                        <if test="brandGroupNo != null and brandGroupNo != ''">
-	                        AND		CTG.BRAND_GROUP_NO = #{brandGroupNo}
-	                        </if>
-	                      AND CT.CONTENTS_SQ IN ( SELECT TMP.CONTENTS_SQ FROM (SELECT A.CONTENTS_SQ FROM TB_CONTENTS A WHERE 1=1 AND A.CONTENTS_LOC = #{contentsLoc} AND NOW() BETWEEN A.DISP_STDT AND A.DISP_EDDT
-	                                                                                    <if test="brandGroupNo != null and brandGroupNo != ''">
-	                                                                                        AND A.BRAND_GROUP_NO = #{brandGroupNo}
-	                                                                                    </if>
-	                                                                                    <if test="contentsLoc=='SCM003'">
-	                                                                                        <if test="cateNo != null and cateNo != ''">
-	                                                                                        AND A.CATE_NO = #{cateNo}
-	                                                                                        </if>
-	                                                                                    </if>
-	                                                                                    <if test="contentsLoc=='SCM002'">
-	                                                                                        <if test="cate1No != null and cate1No != ''">
-	                                                                                            AND A.CATE_NO = #{cate1No}
-	                                                                                        </if>
-	                                                                                    </if>
-	                                                                                    <if test="pageGb != null and pageGb == 'BEST'">
-	                                                                                        <if test="cate1No != null and cate1No != ''">
-	                                                                                        AND A.CATE_NO = #{cate1No}
-	                                                                                        </if>
-	                                                                                    </if>
-	                                                                                    AND A.USE_YN = 'Y' ORDER BY A.DISP_ORD
-	                                                                                    LIMIT 1
-	                                                                          ) AS TMP
-	                                                              )
-	                    </if>
-	                    AND		NOW() BETWEEN CT.DISP_STDT AND CT.DISP_EDDT
-	                </when>
-	                <otherwise>
-	                    FROM   TB_CATE_4SRCH C4
-	                    , TB_CATE_GOODS CG
-	                    , TB_CONTENTS_GOODS_MAIN TT
-	                    
-	                    <if test="contentsLoc == 'SCM003'"> <!-- 베스트 -->
-	                    , TB_GOODS_SUMMARY GS
-	                    </if>
-	                    WHERE  C4.LEAF_CATE_NO = CG.CATE_NO
-	                    <choose>
-	                        <when test="brandGroupNo != null and brandGroupNo != ''">
-	                    AND    CG.BRAND_GROUP_NO = #{brandGroupNo}
-	                        </when>
-	                        <otherwise>
-	                    AND    CG.BRAND_GROUP_NO = 0 /*브랜드메인에서 접근한 것이 아니면*/
-	                        </otherwise>
-	                    </choose>
-	                    AND    CG.GOODS_CD = TT.GOODS_CD
-	                    
-	                    <if test="contentsLoc == 'SCM003'"> <!-- 베스트 -->
-	                    AND    CG.GOODS_CD = GS.GOODS_CD
-                        </if>
-                        AND    C4.SITE_CD = #{siteCd}
-                        AND    C4.CATE_GB = #{cateGb}
-                        AND    C4.CATE_TYPE = 'G031_20' /*컨텐츠카테고리*/
-	                    <choose>
-	                        <when test="pageGb != null and pageGb == 'BEST'">
-	                            <if test="cate1No != null and cate1No != ''">
-	                            AND    C4.CATE1_NO = #{cate1No}
-	                            </if>
-	                        </when>
-	                        <otherwise>
-	                        AND    C4.CATE1_NO = #{cate1No}
-	                        </otherwise>
-	                    </choose>
-	                    AND    C4.CONTENTS_LOC = #{contentsLoc}
-	              </otherwise>
-	           </choose>
-	           
-	            <if test="pageGb != null and pageGb == 'BEST'">
-	            ORDER BY CT.CATE_NO
-	            LIMIT 100
-	            </if>
-	           ) G
-	           <if test="custNo != null and custNo > 0"> <!-- 로그인 했으면 -->
-				LEFT OUTER JOIN TB_WISHLIST W ON G.GOODS_CD = W.GOODS_CD
-				                             AND W.CUST_NO = #{custNo}
-			   </if>
-				   
-		    WHERE  1=1
-		<choose>
-		    <when test="contentsLoc == 'SCM013'"><!-- 베스트 -->
-		     ORDER BY G.SELL_WEEK_QTY DESC , G.GOODS_CD
-		    </when>
-		    <when test="contentsLoc == 'SMM009' or contentsLoc == 'SMM007' or contentsLoc == 'SMM012'"> <!-- md추천 -->
-		    </when>
-		    <when test="contentsLoc == 'SCM002' or (contentsLoc == 'SCM003' and pageGb == null)"> <!-- md추천 -->
-		     ORDER BY G.DISP_ORD ,G.UPD_DT DESC, G.CURR_PRICE DESC, G.GOODS_CD ASC
-		    </when>
-		    <when test="contentsLoc == 'SCM003' and pageGb != null and pageGb == 'BEST'">
-		     ORDER BY G.CATE1_NO, G.DISP_ORD ,G.UPD_DT DESC, G.CURR_PRICE DESC, G.GOODS_CD ASC
-		    </when>
-		    <otherwise>
-		     ORDER BY G.DISP_ORD , G.REG_DT DESC , G.GOODS_CD
-		    </otherwise>
-		</choose>
-		<if test="pageable != null and pageable.endRow != null and pageable.endRow > 0">
-			LIMIT #{pageable.limitStartRow} , #{pageable.pageSize}
-		</if>
-		<if test="maxRow != null and maxRow !=''">
-		    LIMIT #{maxRow}
-		</if>
-		
-	</select>
 		
 </mapper>

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

@@ -38,7 +38,7 @@
 		     , NOTICE_CONTENT                                /*공지내용*/
 		     , URGENT_YN                                     /*긴급여부*/
 		     , READ_CNT                                      /*조회수*/
-		     , DATE_FORMAT(REG_DT,'%Y.%m.%d')    AS REG_DT   /*등록일자*/
+		     , DATE_FORMAT(REG_DT,'%Y%m%d')    AS REG_DT     /*등록일자*/
 		     , (SELECT COUNT(1)
 		        FROM   TB_NOTICE_FILE
 		        WHERE  NOTICE_SQ = A.NOTICE_SQ

+ 3 - 1
src/main/webapp/WEB-INF/views/mob/callcenter/NoticeFormMob.html

@@ -95,7 +95,9 @@
 				tag += '	</div>\n';
 				tag += '	<div class="fold_cont">\n';
 				tag += '		<div class="fold_answer">\n';
-				tag += '			<div class="answer_body">' + item.noticeContent.replaceAll('&lt;','<').replaceAll('&gt;', '>').replaceAll('&quot;', '"') + '</div>\n';
+				
+				// 2021.08.13 &nbsp; 제거
+				tag += '			<div>' + item.noticeContent.replaceAll('&lt;','<').replaceAll('&gt;', '>').replaceAll('&quot;', '"').replaceAll('&amp;nbsp;', ' ') + '</div>\n';
 				tag += '		</div>\n';
 				tag += '	</div>\n';
 				tag += '</li>\n';

+ 7 - 3
src/main/webapp/WEB-INF/views/mob/mypage/MypageGiftcardFormMob.html

@@ -114,13 +114,15 @@ function appendYear() {
 }
 appendYear($("#month"));
 
-//사용내역 조회
+// 사용내역 조회
 $("#SearchUseGiftcard").click(function() {
 	// class제거 추가
 	$("#SearchOwnGiftcard").removeClass("active");
 	$("#SearchUseGiftcard").addClass("active");
 	$("#giftcardList").attr("class", "tab_cont active");
-	$(".select_box").show();
+	
+	// 2021.08.13 날짜 선택박스 활성화 처리
+	$(".select_box select").removeAttr("disabled");
 
 	// 날짜 필드 
 	$("#dateField").css("display", "block");
@@ -197,7 +199,9 @@ $("#SearchOwnGiftcard").click(function() {
 	$("#SearchUseGiftcard").removeClass("active");
 	$("#SearchOwnGiftcard").addClass("active");
 	$("#giftcardList").attr("class", "tab_cont active");
-	$(".select_box").hide();
+	
+	// 2021.08.13 날짜 선택박스 disabled 처리
+	$(".select_box select").attr("disabled","disabled");
 
 	let data = {};
 

+ 3 - 1
src/main/webapp/WEB-INF/views/web/callcenter/NoticeFormWeb.html

@@ -127,7 +127,9 @@
 				tag += '	</div>\n';
 				tag += '	<div class="fold_cont" style="display: none;">\n';
 				tag += '		<div class="fold_detail">\n';
-				tag += '			<div>' + item.noticeContent.replaceAll('&lt;','<').replaceAll('&gt;', '>').replaceAll('&quot;', '"') + '</div>\n';
+				
+				// 2021.08.13 &nbsp; 제거
+				tag += '			<div>' + item.noticeContent.replaceAll('&lt;','<').replaceAll('&gt;', '>').replaceAll('&quot;', '"').replaceAll('&amp;nbsp;', ' ') + '</div>\n';
 				tag += '		</div>\n';
 				tag += '	</div>\n';
 				tag += '</li>\n';

+ 23 - 24
src/main/webapp/WEB-INF/views/web/common/fragments/FooterWeb.html

@@ -20,15 +20,15 @@
 			<div class="family_link">
 				<h2><a href="" class="btn ui_toggle" data-font="lato">FAMILY SITE<i class="ico ico_ft_arrow_b"></i></a></h2>
 				<dl id="family_site" class="">
-					<dt class="no_tit"><span class="blind">그룹없음</span></dt>
-					<dd><a class="clickable" href="http://www.hansaeyes24.com" target="_blank" title="새창 열림">한세예스24홀딩스</a></dd>
-					<dd><a class="clickable" href="https://www.hansae.com" target="_blank" title="새창 열림">한세실업</a></dd>
-					<dd><a class="clickable" href="http://www.hansaedreams.co.kr" target="_blank" title="새창 열림">한세드림</a></dd>
-					<dd><a class="clickable" href="https://www.curlysue.co.kr" target="_blank" title="새창 열림">컬리수</a></dd>
-					<dd><a class="clickable" href="http://www.yes24.com/main/default.aspx" target="_blank" title="새창 열림">예스24</a></dd>
-					<dd><a class="clickable" href="https://www.yes24.vn" target="_blank" title="새창 열림">YES24 Vietnam</a></dd>
-					<dd><a class="clickable" href="http://www.yes24.co.id" target="_blank" title="새창 열림">YES24 Indonesia</a></dd>
-					<dd><a class="clickable" href="http://www.bookdonga.com/main.donga" target="_blank" title="새창 열림">동아출판</a></dd>
+<!-- 					<dt class="no_tit"><span class="blind">그룹없음</span></dt> -->
+<!-- 					<dd><a class="clickable" href="http://www.hansaeyes24.com" target="_blank" title="새창 열림">한세예스24홀딩스</a></dd> -->
+<!-- 					<dd><a class="clickable" href="https://www.hansae.com" target="_blank" title="새창 열림">한세실업</a></dd> -->
+<!-- 					<dd><a class="clickable" href="http://www.hansaedreams.co.kr" target="_blank" title="새창 열림">한세드림</a></dd> -->
+<!-- 					<dd><a class="clickable" href="https://www.curlysue.co.kr" target="_blank" title="새창 열림">컬리수</a></dd> -->
+<!-- 					<dd><a class="clickable" href="http://www.yes24.com/main/default.aspx" target="_blank" title="새창 열림">예스24</a></dd> -->
+<!-- 					<dd><a class="clickable" href="https://www.yes24.vn" target="_blank" title="새창 열림">YES24 Vietnam</a></dd> -->
+<!-- 					<dd><a class="clickable" href="http://www.yes24.co.id" target="_blank" title="새창 열림">YES24 Indonesia</a></dd> -->
+<!-- 					<dd><a class="clickable" href="http://www.bookdonga.com/main.donga" target="_blank" title="새창 열림">동아출판</a></dd> -->
 					<!-- 그룹 구분 할 경우,
 					<dt><span class="txt">그룹1</span></dt>
 					<dd><a class="clickable" href="" target="_blank" title="새창 열림">그룹1의사이트맵1</a></dd>
@@ -414,7 +414,7 @@
 						$('#ulQuickMenuCate').append('<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MAIN);"><span>홈</span></a></li>\n');
 						$('#ulQuickMenuCate').append('<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_ALL_BRAND);"><span>브랜드</span></a></li>\n');
 						
-						let allCate = [[${allCateList}]];
+						let allCate = gAllCate;
 						$.each(result, function(idx, item) {
 							if (item.contentsType == 'C' ) { // 컨텐츠유형:카테고리, 아울렛
 								$.each(allCate, function(allCateIdx, allCateItem) {
@@ -446,7 +446,7 @@
 		tag += '<ul class="quick_depth">\n';
 		tag += '<li><a href="javascript:void(0);" onclick="cfnGoToOutletMain(\'G032_103\');"><span>메인</span></a></li>\n';
 		tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'' + cateGb + '\',\'\',\'\',\'\',\'\',\'\',\'' + formalGb + '\');"><span>전체</span></a></li>\n';
-		let allCate = [[${allCateList}]];
+		let allCate = gAllCate;
 		$.each(allCate, function(allCateIdx, allCateItem) {
 			tag += '<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'' + allCateItem.cateGb + '\',' + allCateItem.cate1No + ',\'\',\'\',\'\',\'\',\'' + formalGb + '\');"><span>' + allCateItem.cate1Nm + '</span></a></li>\n';
 		});
@@ -1302,29 +1302,29 @@
 	
 	
 	//퀵메뉴
-	$('#ulQuickMenuCate').load('FooterWeb.html', function() {
+// 	$('#ulQuickMenuCate').load('FooterWeb.html', function() {
 		fnCreateQuickMenuTab();
-	});
+// 	});
 	
 	//Family Site load 후
-	$('#family_site').load('FooterWeb.html', function() {
+// 	$('#family_site').load('FooterWeb.html', function() {
 		fnGetFamilySite();
-	}); 
+// 	}); 
 	
 	//최근본상품 조회
-	$('#quickMenuTodayGoods').load('FooterWeb.html', function() {
+// 	$('#quickMenuTodayGoods').load('FooterWeb.html', function() {
 		fnGetRecentlyGoods();
-	});
+// 	});
 	
 	// 장바구니 조회
-	$('#quick_menu .shopingbag.quick_con.quick02 .quick_body').load('FooterWeb.html', function() {
+// 	$('#quick_menu .shopingbag.quick_con.quick02 .quick_body').load('FooterWeb.html', function() {
 		fnGetCartGoodsList();
-	});
+// 	});
 	
 	// 위시리스트
-	$('#quickMenuWishList').load('FooterWeb.html', function() {
+// 	$('#quickMenuWishList').load('FooterWeb.html', function() {
 		fnGetWishList();
-	});
+// 	});
 	
 	// 팝업조회
 	//$('#layer_popup').load('footer.html', function() {
@@ -1332,11 +1332,10 @@
 	//});
 	
 	// 쿠폰조회
-	$('#issueCoupon').load('FooterWeb.html', function() {
+// 	$('#issueCoupon').load('FooterWeb.html', function() {
 		//$("#issueCouponBtn").trigger("click");
-		
 		couponAnchor.eq(0).trigger('click');
-	});
+// 	});
 	//$("#issueCouponBtn").trigger("click");
 	
 	//couponAnchor.eq(0).trigger('click');

+ 3 - 3
src/main/webapp/WEB-INF/views/web/common/fragments/GnbWeb.html

@@ -97,7 +97,7 @@
 <script th:inline="javascript">
 /*<![CDATA[*/
 	// 전체카테고리 조회
-// 	let allCate;
+	let gAllCate = [[${allCateList}]];
 // 	let fnGetAllCategory = function() {
 // 		$.getJSON('/display/all/cate/list'
 // 			, function(result, status) {
@@ -266,7 +266,7 @@
 		tag += '				<p>' + outletNm + '</p>\n';
 		tag += '				<a href="javascript:void(0);" onclick="cfnGoToOutletMain(\'G032_103\');" class="more">전체보기</a>\n';
 		tag += '			</div>\n';
-		let allCate = [[${allCateList}]];
+		let allCate = gAllCate;
 		tag += '			<div class="menu">\n';
 		tag += '				<ul class="maintabs" >\n';
 		$.each(allCate, function(allCateIdx, allCateItem) {
@@ -289,7 +289,7 @@
 		let actionUrl = '/display/outlet/cate/list?cate1No=&formalGb='+formalGb;
 		$.getJSON(actionUrl , function(result, status) {
 			if (result.length > 0) {
-				let allCate = [[${allCateList}]];
+				let allCate = gAllCate;
 				$.each(result, function(idx, item) {
 					$.each(allCate, function(allCateIdx, allCateItem) {
 						if (item.cate1No == allCateItem.cate1No) {

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

@@ -130,7 +130,7 @@
 														</div>
 														<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=" itemName" th:text="${goodsData.goodsFullNm}">스타 착용 여성 퍼 아플리케 오버핏 투마일 웨어링 점퍼</div>
+														<div class="itemName" th:text="${goodsData.goodsFullNm}">스타 착용 여성 퍼 아플리케 오버핏 투마일 웨어링 점퍼</div>
 														<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=" 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>
 															<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=" itemName" th:text="${bestItemData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
+															<div class="itemName" th:text="${bestItemData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 															<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=" 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="tiles"></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">
 										<span>HOURS</span>
 										<span>MINS</span>
@@ -277,64 +273,6 @@
 									</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 class="cont_body">
 							<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)">
 																</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
 																	<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>
@@ -528,7 +466,7 @@
 																		</div>
 																		<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=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
+																		<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																		<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=" 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>
 <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 */
 var target_date = '';
 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() {

+ 1 - 1
src/main/webapp/ux/mo/css/layout_m.css

@@ -59,7 +59,7 @@
 .cs ul.inquiry_box > li{width:33.3%; border-right:0.2rem solid #e4e4e4;}
 .cs ul.inquiry_box > li:nth-last-child(1){border-right:0 none;}
 .cs ul.inquiry_box > li > p{text-align:center;}
-.cs ul.inquiry_box > li > p:nth-of-type(1){color:#000000; font-size:1.4rem; font-weight:600;}
+.cs ul.inquiry_box > li > p:nth-of-type(1){color:#000000; font-size:1.8rem; font-weight:600;}
 .cs ul.inquiry_box > li > p:nth-of-type(2){margin-top:0.5rem; color:#696969; font-size:1.3rem; font-weight:500;}
 
 /* cs_faq_1 */