Bläddra i källkod

이태영 - 20210408 장바구니 이미지 사이즈 수정

xodud1202 5 år sedan
förälder
incheckning
777c7ebfc2

+ 2 - 10
src/main/java/com/style24/front/biz/service/TsfCartService.java

@@ -150,32 +150,23 @@ public class TsfCartService {
 
 				goods = goodsService.getGoodsInfo(goods);
 
-				log.info("CHECK :::::::::::::::: 0 ::::::::::::::::::::::");
-
 				if (goods == null) {
-					log.info("CHECK :::::::::::::::: 1 ::::::::::::::::::::::");
 					result.put("message", "상품 정보가 존재하지 않습니다.");
 					return result;
 				} else if (TscConstants.GoodsStat.SOLDOUT.value().equals(goods.getGoodsStat())) {
-					log.info("CHECK :::::::::::::::: 2 ::::::::::::::::::::::");
 					result.put("message", "품절입니다");
 					return result;
 				} else if (!TscConstants.GoodsStat.SOLDOUT.value().equals(goods.getGoodsStat()) && !TscConstants.GoodsStat.APPR.value().equals(goods.getGoodsStat())) {
-					log.info("CHECK :::::::::::::::: 3 ::::::::::::::::::::::");
 					result.put("message", "판매중인 상품이 아닙니다.");
 					return result;
 				} else if (param.getGoodsQty() > goods.getMaxOrdQty()) {
-					log.info("CHECK :::::::::::::::: 4 ::::::::::::::::::::::");
 					result.put("message", goods.getGoodsNm() + " 상품의 최대 구매 수량은 " + goods.getMaxOrdQty() + " 입니다.");
 					return result;
 				} else if (param.getGoodsQty() < goods.getMinOrdQty()) {
-					log.info("CHECK :::::::::::::::: 5 ::::::::::::::::::::::");
 					result.put("message", goods.getGoodsNm() + " 상품의 최소 구매 수량은 " + goods.getMinOrdQty() + " 입니다.");
 					return result;
 				}
 
-				log.info("CHECK :::::::::::::::: 6 ::::::::::::::::::::::");
-
 				// 상품 재고 확인
 				GoodsStock checkParam = new GoodsStock();
 				checkParam.setGoodsCd(param.getGoodsCd());
@@ -235,10 +226,10 @@ public class TsfCartService {
 
 		cart.setJsessionId(TscSession.getSessionId());
 
-		// 장바구니 보유 CART_SQ 쿼리
 		List<String> sendCartSqList = new ArrayList<String>();
 		for (Cart carts : params) {
 			int i = 1;
+			// 장바구니 보유 CART_SQ 쿼리
 			Collection<Cart> cartInfos = carts.getCartCompsList();
 			sb = new StringBuilder();
 			for(Cart param : cartInfos) {
@@ -310,6 +301,7 @@ public class TsfCartService {
 			}
 		}
 
+		// 상품상세 > 바로구매 로그인 후 구매 클릭시 주문서로 송부할 장바구니번호
 		StringBuilder cartSqComma = new StringBuilder();
 
 		int i = 0;

+ 3 - 3
src/main/webapp/WEB-INF/views/mob/cart/CartListAjaxFormMob.html

@@ -97,7 +97,7 @@
 							</div>
 							<div class="thumb_box">
 								<a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|">
-									<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm}" src="/" th:alt="${cart.sysImgNm}" alt="">
+									<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm} + '?RS=100'" src="/" th:alt="${cart.sysImgNm}" alt="">
 								</a>
 							</div>
 							<div class="info_box">
@@ -197,7 +197,7 @@
 							</div>
 							<div class="thumb_box">
 								<a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|">
-									<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm}" src="/" th:alt="${cart.sysImgNm}" alt="">
+									<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm} + '?RS=100'" src="/" th:alt="${cart.sysImgNm}" alt="">
 								</a>
 							</div>
 							<div class="info_box">
@@ -317,7 +317,7 @@
 							</div>
 							<div class="thumb_box">
 								<a th:href="|javascript:fnGoToGoodsDetail('${cart.goodsCd}')|">
-									<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm}" src="/" th:alt="${cart.sysImgNm}" alt="">
+									<img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm} + '?RS=100'" src="/" th:alt="${cart.sysImgNm}" alt="">
 								</a>
 							</div>
 							<div class="info_box">

+ 2 - 2
src/main/webapp/WEB-INF/views/web/cart/CartChangeOptionPopupWeb.html

@@ -16,7 +16,7 @@
 						<th:block th:if="${setType.equals(cart.goodsType) or cart.selfGoodsYn.equals('N')}">
 							<li th:each="img, index : ${cart.cartImgList}">
 								<span class="thumb">
-									<img th:src="${cart.imgPath + '/' + img.sysImgNm}" src="#" alt="" />
+									<img th:src="${cart.imgPath + '/' + img.sysImgNm} + '?RS=180'" src="#" alt="" />
 								</span>
 							</li>
 						</th:block>
@@ -26,7 +26,7 @@
 									<th:block th:if="${color.cartOptCd1 != null and color.cartOptCd1.equals(color.optCd1)}">
 										<li th:each="img, index : ${color.cartImgList}" th:if="${img.colorCd == color.cartOptCd1}">
 											<span class="thumb">
-												<img th:src="${cart.imgPath + '/' + img.sysImgNm}" src="#" alt="" />
+												<img th:src="${cart.imgPath + '/' + img.sysImgNm} + '?RS=180'" src="#" alt="" />
 											</span>
 										</li>
 									</th:block>