Parcourir la source

이태영 - 20210208 장바구니 임시커밋

xodud1202 il y a 5 ans
Parent
commit
6f61125970

+ 11 - 2
src/main/java/com/style24/front/biz/dao/TsfCartDao.java

@@ -108,10 +108,19 @@ public interface TsfCartDao {
 
     /**
      * 다다익선 SECTION 적용 조건 조회
-     * @param Cart
-     * @return void
+     * @param List<Integer>
+     * @return Collection<Order>
      * @author xodud1202
      * @since 2021. 02. 04
      */
     Collection<Order> selectTmtbSectionValList(List<Integer> param);
+
+    /**
+     * 장바구니 상품 조회
+     * @param Order
+     * @return Order
+     * @author xodud1202
+     * @since 2021. 02. 08
+     */
+    Collection<Order> getCartGoodsList(Order param);
 }

+ 53 - 16
src/main/java/com/style24/front/biz/service/TsfCartService.java

@@ -16,6 +16,7 @@ import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.servlet.ModelAndView;
 
 import java.util.ArrayList;
 import java.util.Collection;
@@ -220,7 +221,9 @@ public class TsfCartService {
 		}
 	}
 
+	// 장바구니 상품 리스트 조회 서비스
 	public GagaMap getCartGoodsList() {
+		//ModelAndView result = new ModelAndView();
 		GagaMap result = new GagaMap();							// return
 		List<Integer> cartSqs = new ArrayList<Integer>();		// 품절 제외 장바구니 리스트
 		Order order = new Order();								// 조회 조건
@@ -236,7 +239,7 @@ public class TsfCartService {
 		order.setUpdNo(0);
 
 		// 장바구니 상품 조회
-		Collection<Order> cartGoodsList = coreOrderService.getCartGoodsList(order);
+		Collection<Order> cartGoodsList = cartDao.getCartGoodsList(order);
 
 		// 품절체크
 		for(Order goods : cartGoodsList) {
@@ -257,12 +260,25 @@ public class TsfCartService {
 			}
 		}
 
-		order.setCartSqs(cartSqs.stream().mapToInt(Integer::intValue).toArray());
+		order.setCartSqArr(cartSqs.stream().mapToInt(Integer::intValue).toArray());
 
 		// 다다익선 할인 상품 조회
 		Collection<Order> moreBetterAmtList = getMoreBetterAmtList(order);
+		for(Order cart : moreBetterAmtList) {
+			if(cart.getItemNm().contains("!@!")) {
+				cart.setItemNmArr(cart.getItemNm().split("!@!"));
+				cart.setOptCdArr(cart.getOptCd().split(","));
+				cart.setItemQtyArr(cart.getItemQtyr().split(","));
+			} else {
+				String[] arr = {cart.getItemNm()}, arr2 = {cart.getOptCd()},arr3 = {cart.getItemQtyr()};
+				cart.setItemNmArr(arr);
+				cart.setOptCdArr(arr2);
+				cart.setItemQtyArr(arr3);
+			}
+		}
+
 
-		result.put("cartGoodsList", cartGoodsList);
+		result.put("cartList", moreBetterAmtList);
 
 		return result;
 	}
@@ -270,13 +286,13 @@ public class TsfCartService {
 	/**
 	 * 다다익선 할인 금액 조회
 	 * @param Order
-	 * param.cartSqs[] : 필수
+	 * param.cartSqArr[] : 필수
 	 * @return String
 	 * @author xodud1202
 	 * @since 2021. 01. 28
 	 */
 	public Collection<Order> getMoreBetterAmtList(Order param) {
-		Collection<Order> result = new ArrayList<Order>();
+		//Collection<Order> result = new ArrayList<Order>();
 
 		// 장바구니 상품 조회
 		param.setFrontGb(TsfSession.getFrontGb());
@@ -327,8 +343,8 @@ public class TsfCartService {
 					applyInfo.setTmtbNm(section.getTmtbNm());
 
 					if(TscConstants.ApplyGb.QTY.value().equals(applyInfo.getApplyGb())) {		// 수량 적용
-						if(section.getSectionVal() < applyInfo.getTmtbSumQty()) {				// 장바구니 수량 할인 기준 달성시
-							if(applyInfo.getSectionVal() < section.getSectionVal()) {			// 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
+						if(section.getSectionVal() <= applyInfo.getTmtbSumQty()) {				// 장바구니 수량 할인 기준 달성시
+							if(applyInfo.getSectionVal() <= section.getSectionVal()) {			// 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
 								applyInfo.setSectionVal(section.getSectionVal());
 								applyInfo.setApplyQtySectionVal(section.getTmtbSumQty());
 								applyInfo.setApplyAmtSectionVal(section.getTmtbSumAmt());
@@ -336,16 +352,24 @@ public class TsfCartService {
 								applyInfo.setDcWay(section.getDcWay());
 								applyInfo.setDcVal(section.getDcVal());
 							}
+						} else {
+							if(applyInfo.getGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
+								applyInfo.setApplyQtySectionYn("N");
+							}
 						}
 					} else if (TscConstants.ApplyGb.AMT.value().equals(applyInfo.getApplyGb())) {
-						if(section.getSectionVal() < applyInfo.getTmtbSumAmt()) {				// 장바구니 수량 할인 기준 달성시
-							if(applyInfo.getSectionVal() < section.getSectionVal()) {			// 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
+						if(section.getSectionVal() <= applyInfo.getTmtbSumAmt()) {				// 장바구니 수량 할인 기준 달성시
+							if(applyInfo.getSectionVal() <= section.getSectionVal()) {			// 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
 								applyInfo.setSectionVal(section.getSectionVal());
 								applyInfo.setApplyAmtSectionVal(section.getSectionVal());
 								applyInfo.setApplyAmtSectionYn("Y");
 								applyInfo.setDcWay(section.getDcWay());
 								applyInfo.setDcVal(section.getDcVal());
 							}
+						} else {
+							if(applyInfo.getGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
+								applyInfo.setApplyQtySectionYn("N");
+							}
 						}
 					}
 				}
@@ -363,8 +387,8 @@ public class TsfCartService {
 		boolean check = true;
 		for(Order resultAmt : tmtbApplyList) {
 			if("Y".equals(resultAmt.getApplyQtySectionYn())) {
-				i++;
 				if(TscConstants.DcWay.AMT.value().equals(resultAmt.getDcWay())) {		// 할인 방식 금액일경우
+					i++;
 					if(i == 1) {
 						leftAmt = resultAmt.getDcVal();
 						check = false;
@@ -374,22 +398,35 @@ public class TsfCartService {
 						check = true;
 						i = 0;
 						resultAmt.setTmtbDcAmt(leftAmt);
+						leftAmt = 0;
 					} else {
 						int tempAmt = resultAmt.getDcVal() * (((resultAmt.getCurrPrice() + resultAmt.getOptAddPrice()) * resultAmt.getGoodsQty()) / resultAmt.getTmtbSumAmt());
 						leftAmt -= tempAmt;
 						resultAmt.setTmtbDcAmt(tempAmt);
 					}
 				} else {																// 할인 방식 할인율일 경우
-					leftAmt = 0;
+					int tempAmt = (resultAmt.getCurrPrice() + resultAmt.getOptAddPrice()) * resultAmt.getGoodsQty();
+					tempAmt = tempAmt - (tempAmt * (resultAmt.getDcVal()/100));
+					resultAmt.setTmtbDcAmt(tempAmt);
 				}
 			}
 		}
 
-		// 할인 cartGoodsList에 할인 금액 세팅
-		// 장바구니 등록 상품 중 tmtbSq는 존재하나 setApplyAmtSectionYn가 없는 경우 N으로 등록해주어야함 >> 장바구니 화면에서 추천상품 보여주기 위함
-		// (기본상품만 N처리해주면될듯함.)
-
+		// 데이터 통합
+		for(Order cart : cartGoodsList) {
+			for(Order apply : tmtbApplyList) {
+				if(cart.getCartSq() == apply.getCartSq()) {
+					cart.setTmtbDcAmt(apply.getTmtbDcAmt());
+					cart.setApplyQtySectionYn(apply.getApplyQtySectionYn());
+					cart.setApplyAmtSectionYn(apply.getApplyQtySectionYn());
+					cart.setCurrPrice((apply.getCurrPrice() + apply.getOptAddPrice()) * apply.getGoodsQty());
+					cart.setTmtbNm(apply.getTmtbNm());
+					cart.setTmtbSq(apply.getTmtbSq());
+				}
+			}
+		}
 
-		return result;
+		//return result;
+		return cartGoodsList;
 	}
 }

+ 22 - 18
src/main/java/com/style24/front/biz/web/TsfCartController.java

@@ -1,25 +1,26 @@
 package com.style24.front.biz.web;
 
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.core.env.Environment;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.servlet.ModelAndView;
+
 import com.gagaframework.web.parameter.GagaMap;
-import com.gagaframework.web.rest.server.GagaResponse;
-import com.style24.core.biz.service.TscOrderService;
 import com.style24.core.support.message.TscMessageByLocale;
-import com.style24.core.support.session.TscSession;
 import com.style24.front.biz.service.TsfCartService;
 import com.style24.front.support.controller.TsfBaseController;
 import com.style24.persistence.domain.Cart;
 import com.style24.persistence.domain.Order;
 
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.*;
-import org.springframework.web.servlet.ModelAndView;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
 
 /**
  * 장바구니 Controller
@@ -38,6 +39,9 @@ public class TsfCartController extends TsfBaseController {
 	@Autowired
 	private TsfCartService cartService;
 
+	@Autowired
+	private Environment env;
+
 	/**
 	 * 장바구니 화면
 	 * @return
@@ -82,13 +86,13 @@ public class TsfCartController extends TsfBaseController {
 		return message.getMessage("SUCC_0001");
 	}
 
-	@ResponseBody
+	// @ResponseBody
 	@PostMapping("/goods/list")
-	public GagaMap selecCartGoodsList() {
-		GagaMap result = new GagaMap();
-
-		result.putAll(cartService.getCartGoodsList());
+	public String selecCartGoodsList(Order order, Model model) {
+		GagaMap gaga = cartService.getCartGoodsList();
+		model.addAttribute("cartList", gaga.get("cartList"));
+		model.addAttribute("IMG_PATH", env.getProperty("upload.goods.view"));
 
-		return result;
+		return super.getDeviceViewName("cart/cartListAjaxForm");
 	}
 }

+ 1 - 1
src/main/java/com/style24/front/biz/web/TsfOrderController.java

@@ -89,7 +89,7 @@ public class TsfOrderController extends TsfBaseController {
 		// 3. 할인구간정보조회
 		// 3.1 장바구니상품 즉시할인, 다다익선 할인 금액 적용 정보 조회 (주문상세목록)
 		order.setCartSqs(order.getCartSqArr());
-		Collection<Order> tmtbGoodsApplyList = cartService.selecMoreBetterAmtList(order);		
+		Collection<Order> tmtbGoodsApplyList = cartService.getMoreBetterAmtList(order);
 		
 		// 3.2 장바구니상품 상품쿠폰, 장바구니쿠폰 정보 조회
 		Collection<Order> goodsCartCpnApplyGoodsList = coreOrderService.getGoodsCartCpnApplyGoodsList(order);

+ 37 - 35
src/main/java/com/style24/persistence/mybatis/shop/TsfCart.xml

@@ -268,9 +268,9 @@
 					 INNER  JOIN TB_CART C
 					 ON     TAG.GOODS_CD = C.GOODS_CD
 					 WHERE  TAG.DEL_YN = 'N'
-					<if test="cartSqs != null and cartSqs.length > 0">
+					<if test="cartSqArr != null and cartSqArr.length > 0">
 					AND     C.CART_SQ IN
-						<foreach collection="cartSqs" item="item" index="index"  open="(" close=")" separator=",">
+						<foreach collection="cartSqArr" item="item" index="index"  open="(" close=")" separator=",">
 								#{item}
 						</foreach>
 					</if>
@@ -293,9 +293,9 @@
 		AND    C.CART_GB = 'G026_BC'
 		AND    G.GOODS_STAT = 'G008_90'
 		AND    G.SELF_MALL_YN = 'Y'
-		<if test="cartSqs != null and cartSqs.length > 0">
+		<if test="cartSqArr != null and cartSqArr.length > 0">
 		AND    C.CART_SQ IN
-			<foreach collection="cartSqs" item="item" index="index"  open="(" close=")" separator=",">
+			<foreach collection="cartSqArr" item="item" index="index"  open="(" close=")" separator=",">
 				#{item}
 			</foreach>
 		</if>
@@ -330,7 +330,6 @@
 		WHERE  1=1
 		AND    NOT_APPLY.TMTB_SQ IS NULL
 		AND    TAG.DEL_YN = 'N'
-		AND    C.JSESSION_ID = #{jsessionId}
 		AND    C.CART_GB = 'G026_BC'
 		AND    G.GOODS_STAT = 'G008_90'
 		AND    G.SELF_MALL_YN = 'Y'
@@ -340,43 +339,15 @@
 				#{item}
 			</foreach>
 		</if>
-		<if test="cartSqs != null and cartSqs.length > 0">
+		<if test="cartSqArr != null and cartSqArr.length > 0">
 		AND    C.CART_SQ IN
-			<foreach collection="cartSqs" item="item" index="index"  open="(" close=")" separator=",">
+			<foreach collection="cartSqArr" item="item" index="index"  open="(" close=")" separator=",">
 				#{item}
 			</foreach>
 		</if>
 		GROUP BY TAG.TMTB_SQ
 	</select>
 
-	<!-- 다다익선 적용 상품 조회 -->
-	<select id="selectApplyMoreBetterCartList" parameterType="int" resultType="Order">
-		/* TsfCart.selectApplyMoreBetterCartList : 다다익선 적용 상품 SUM DATA 조회 */
-		SELECT TAG.GOODS_CD
-			 , TAG.TMTB_SQ
-		FROM   TB_TMTB_APPLY_GOODS TAG
-		INNER  JOIN TB_CART C
-		ON     TAG.GOODS_CD = C.GOODS_CD
-		INNER  JOIN TB_GOODS G
-		ON     C.GOODS_CD = G.GOODS_CD
-		LEFT   OUTER JOIN TB_TMTB_APPLY_GOODS NOT_APPLY
-		ON     TAG.GOODS_CD = NOT_APPLY.GOODS_CD
-		AND    NOT_APPLY.GOODS_GB = 'G800_30'   /* 제외상품 */
-		WHERE  1=1
-		AND    NOT_APPLY.TMTB_SQ IS NULL
-		AND    TAG.DEL_YN = 'N'
-		AND    C.JSESSION_ID = #{jsessionId}
-		AND    C.CART_GB = 'G026_BC'
-		AND    G.GOODS_STAT = 'G008_90'
-		AND    G.SELF_MALL_YN = 'Y'
-		<if test="list != null and list.size() > 0">
-			AND    TAG.TMTB_SQ IN
-			<foreach collection="list" item="item" index="index"  open="(" close=")" separator=",">
-				#{item}
-			</foreach>
-		</if>
-	</select>
-
 	<!-- 다다익선 SECTION 적용 조건 조회 -->
 	<select id="selectTmtbSectionValList" parameterType="int" resultType="Order">
 		/* TsfCart.selectTmtbSectionValList : 다다익선 SECTION 적용 조건 조회 */
@@ -399,4 +370,35 @@
 		</if>
 		ORDER  BY TMTB_SQ, SECTION_VAL
 	</select>
+
+	<!-- 장바구니 상품 조회 -->
+	<select id="getCartGoodsList" parameterType="Order" resultType="Order">
+		/* TsfCart.getCartGoodsList : 장바구니 상품 조회 */
+		SELECT C.CART_SQ
+			 , C.GOODS_CD
+			 , C.GOODS_QTY
+			 , CD.ITEM_CD
+			 , CD.OPT_CD
+			 , G.GOODS_TYPE
+		FROM   TB_CART C
+		INNER  JOIN TB_CART_DETAIL CD
+		ON     C.CART_SQ = CD.CART_SQ
+		INNER  JOIN TB_GOODS G
+		ON     C.GOODS_CD = G.GOODS_CD
+		WHERE  G.SELF_MALL_YN = 'Y'
+		AND    G.GOODS_STAT = 'G008_90'
+		<if test="custNo == 0">
+		AND    C.CUST_NO = 0
+		AND    C.JSESSION_ID = #{jsessionId}
+		</if>
+		<if test="custNo != 0">
+		AND    C.CUST_NO = #{custNo}
+		</if>
+		<if test="cartSqArr != null and cartSqArr.length > 0">
+		AND    C.CART_SQ IN
+			<foreach collection="cartSqArr" item="item" index="index"  open="(" close=")" separator=",">
+				#{item}
+			</foreach>
+		</if>
+	</select>
 </mapper>

+ 76 - 0
src/main/webapp/WEB-INF/views/web/cart/cartListAjaxFormWeb.html

@@ -0,0 +1,76 @@
+<html lang="ko"
+      xmlns:th="http://www.thymeleaf.org">
+<table>
+    <colgroup>
+        <col width="710">
+        <col width="190">
+        <col width="*">
+    </colgroup>
+    <tbody>
+    <script>
+        alert([[${cartList.size()}]]);
+    </script>
+<th:block th:each="cart, status : ${cartList}">
+    <tr>
+        <td class="t_l">
+            <div class="info_item">
+                <div class="form_box">
+                    <p class="form_field">
+                        <input id="cartSqArr" type="checkbox" th:value="${cart.cartSq}" checked><label for="cartSqArr"><span class="sr-only">상품선택</span></label>
+                    </p>
+                </div>
+                <div class="thumb_box">
+                    <a href="">
+                        <img th:src="${IMG_PATH} + '/' + ${cart.sysImgNm}" width="100%" alt=""><!-- IMG_PATH : //image.style24.com/speedy_image-wivismall/goods -->
+                    </a>
+                </div>
+                <div class="info_box">
+                    <p class="od_name">
+                        <a href="">
+                            <span class="brand" th:text="${cart.brandEnm}"></span>
+                            <span class="name" th:text="${cart.goodsNm}"></span>
+                        </a>
+                    </p>
+                    <p class="od_opt" th:each="opt, index : ${cart.itemNmArr}">
+                        <span class="option">옵션:<em th:text="${cart.itemNmArr[index.index]} + '_' + ${cart.optCdArr[index.index]}"></em></span>
+                        <span class="count">수량:<em th:text="${cart.itemQtyArr[index.index]} * ${cart.goodsQty}"></em>개</span>
+                    </p>
+                    <p class="od_modify">
+                        <button type="button"><span>옵션/수량변경</span></button>
+                    </p>
+                </div>
+            </div>
+        </td>
+        <td>
+            <div class="info_calc">
+                <p class="price">
+                    <span class="selling_price" th:text="${cart.tmtbDcAmt}"></span>
+                    <del>100,000원</del>
+                </p>
+                <p class="point"><span>49</span>p 적립예정</p>
+                <p>
+                    <button type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
+                </p>
+                <p class="util">
+                    <span>
+                        <button type="button" class="btn_favorite active"><span><i class="ico ico_like"></i><em class="sr-only">관심상품 추가</em></span></button>
+                    </span>
+                    <span>
+                        <button type="button" class="btn_delete"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
+                    </span>
+                </p>
+            </div>
+        </td>
+        <td class="merge_row">
+            <div class="info_dlvr">
+                <span class="dlvr_fee">3,000원</span>
+                <a href="#" target="_blank">배송비 SAVE 상품 보기</a>
+            </div>
+        </td>
+    </tr>
+</th:block>
+
+
+    </tbody>
+</table>
+</html>

+ 6 - 183
src/main/webapp/WEB-INF/views/web/cart/cartListFormWeb.html

@@ -74,187 +74,8 @@
                                 <div class="btn_area">
                                     <button type="button" class="btn btn_default"><span><i class="ico ico_trash"></i>전체삭제</span></button>
                                 </div>
-                                <div id="dlvrList1" class="tbl type2">
-                                    <table>
-                                        <colgroup>
-                                            <col width="710">
-                                            <col width="190">
-                                            <col width="*">
-                                        </colgroup>
-                                        <tbody>
-                                        <tr>
-                                            <td class="t_l">
-                                                <div class="info_item">
-                                                    <div class="form_box">
-                                                        <p class="form_field">
-                                                            <input id="od_item1" type="checkbox" checked=""><label for="od_item1"><span class="sr-only">상품선택</span></label>
-                                                        </p>
-                                                    </div>
-                                                    <div class="thumb_box">
-                                                        <a href="">
-                                                            <img src="../ux/images/thumb/tmp_pdClickother1.jpg" width="100%" alt="">
-                                                        </a>
-                                                    </div>
-                                                    <div class="info_box">
-                                                        <p class="od_name">
-                                                            <a href="">
-                                                                <span class="brand">Mollimelli 몰리멜리</span>
-                                                                <span class="name">몰리겨울상하복 균일가 택1 유아동/상하복/기모상하복/상하의세트 몰리겨울상하복 균일가 택1 유아동/상하복/기모상하복/상하의세트몰리겨울상하복 균일가 택1 유아동/상하복/기모상하복/상하의세트</span>
-                                                            </a>
-                                                        </p>
-                                                        <p class="od_opt">
-                                                            <span class="option">옵션:<em>01_루돌프융기모상하복_D오렌지/110</em></span>
-                                                            <span class="count">수량:<em>99</em>개</span>
-                                                        </p>
-                                                        <p class="od_modify">
-                                                            <button type="button"><span>옵션/수량변경</span></button>
-                                                        </p>
-                                                    </div>
-                                                </div>
-                                            </td>
-                                            <td>
-                                                <div class="info_calc">
-                                                    <p class="price">
-                                                        <span class="selling_price">61,200원</span>
-                                                        <del>100,000원</del>
-                                                    </p>
-                                                    <p class="point"><span>49</span>p 적립예정</p>
-                                                    <p>
-                                                        <button type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
-                                                    </p>
-                                                    <p class="util">
-                                                        <span>
-                                                            <button type="button" class="btn_favorite active"><span><i class="ico ico_like"></i><em class="sr-only">관심상품 추가</em></span></button>
-                                                        </span>
-                                                        <span>
-                                                            <button type="button" class="btn_delete"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
-                                                        </span>
-                                                    </p>
-                                                </div>
-                                            </td>
-                                            <td class="merge_row"> <!-- 같은 데이터 노출시 동일 영역끼리 병합 : 클래스명 merge_row 추가 -->
-                                                <div class="info_dlvr">
-                                                    <span class="dlvr_fee">3,000원</span>
-                                                    <a href="#" target="_blank">배송비 SAVE 상품 보기</a>
-                                                </div>
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <td class="t_l">
-                                                <div class="info_item">
-                                                    <div class="form_box">
-                                                        <p class="form_field">
-                                                            <input id="od_item2" type="checkbox" checked=""><label for="od_item2"><span class="sr-only">상품선택</span></label>
-                                                        </p>
-                                                    </div>
-                                                    <div class="thumb_box">
-                                                        <a href="">
-                                                            <img src="../ux/images/thumb/tmp_pdClickother1.jpg" width="100%" alt="">
-                                                        </a>
-                                                    </div>
-                                                    <div class="info_box">
-                                                        <p class="od_name">
-                                                            <a href="">
-                                                                <span class="brand">Mollimelli 몰리멜리</span>
-                                                                <span class="name">몰리겨울상하복 균일가 택1 </span>
-                                                            </a>
-                                                        </p>
-                                                        <p class="od_opt">
-                                                            <span class="option">옵션:<em>01_루돌프융기모상하복_D오렌지/110</em></span>
-                                                            <span class="count">수량:<em>100</em>개</span>
-                                                        </p>
-                                                        <p class="od_modify">
-                                                            <button type="button"><span>옵션/수량변경</span></button>
-                                                        </p>
-                                                    </div>
-                                                </div>
-                                            </td>
-                                            <td>
-                                                <div class="info_calc">
-                                                    <p class="price">
-                                                        <span class="selling_price">61,200원</span>
-                                                        <del>100,000원</del>
-                                                    </p>
-                                                    <p class="point"><span>49</span>p 적립예정</p>
-                                                    <p>
-                                                        <button type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
-                                                    </p>
-                                                    <p class="util">
-                                                        <span>
-                                                            <button type="button" class="btn_favorite active"><span><i class="ico ico_like"></i><em class="sr-only">관심상품 추가</em></span></button>
-                                                        </span>
-                                                        <span>
-                                                            <button type="button" class="btn_delete"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
-                                                        </span>
-                                                    </p>
-                                                </div>
-                                            </td>
-                                            <td class="merge_row">
-                                                <div class="info_dlvr">
-                                                    <span class="dlvr_fee">3,000원</span>
-                                                    <a href="#" target="_blank">배송비 SAVE 상품 보기</a>
-                                                </div>
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <td class="t_l">
-                                                <div class="info_item">
-                                                    <div class="form_box">
-                                                        <p class="form_field">
-                                                            <input id="od_item3" type="checkbox" checked=""><label for="od_item3"><span class="sr-only">상품선택</span></label>
-                                                        </p>
-                                                    </div>
-                                                    <div class="thumb_box">
-                                                        <a href="">
-                                                            <img src="../ux/images/thumb/tmp_pdClickother1.jpg" width="100%" alt="">
-                                                        </a>
-                                                    </div>
-                                                    <div class="info_box">
-                                                        <p class="od_name">
-                                                            <a href="">
-                                                                <span class="brand">Mollimelli 몰리멜리</span>
-                                                                <span class="name">몰리겨울상하복 균일가 택1 </span>
-                                                            </a>
-                                                        </p>
-                                                        <p class="od_opt">
-                                                            <span class="option">옵션:<em>01_루돌프융기모상하복_D오렌지/110</em></span>
-                                                            <span class="count">수량:<em>100</em>개</span>
-                                                        </p>
-                                                        <p class="od_modify">
-                                                            <button type="button"><span>옵션/수량변경</span></button>
-                                                        </p>
-                                                    </div>
-                                                </div>
-                                            </td>
-                                            <td>
-                                                <div class="info_calc">
-                                                    <p class="price">
-                                                        <span class="selling_price">61,200원</span>
-                                                        <del>100,000원</del>
-                                                    </p>
-                                                    <p class="point"><span>49</span>p 적립예정</p>
-                                                    <p>
-                                                        <button type="button" class="btn btn_primary btn_sm"><span>즉시구매</span></button>
-                                                    </p>
-                                                    <p class="util">
-                                                        <span>
-                                                            <button type="button" class="btn_favorite active"><span><i class="ico ico_like"></i><em class="sr-only">관심상품 추가</em></span></button>
-                                                        </span>
-                                                        <span>
-                                                            <button type="button" class="btn_delete"><span><i class="ico ico_trash"></i><em class="sr-only">상품삭제</em></span></button>
-                                                        </span>
-                                                    </p>
-                                                </div>
-                                            </td>
-                                            <td class="merge_row">
-                                                <div class="info_dlvr">
-                                                    <span class="dlvr_fee">3,000원</span>
-                                                    <a href="#" target="_blank">배송비 SAVE 상품 보기</a>
-                                                </div>
-                                            </td>
-                                        </tr>
-                                        </tbody>
-                                    </table>
+                                <div id="bulletDelvList" class="tbl type2">
+
                                 </div>
                             </div>
                             <!-- //총알배송 -->
@@ -1028,9 +849,11 @@
             $.ajax( {
                 type: "POST",
                 url : '/cart/goods/list',
-                dataType : 'json',
+                dataType : 'html',
                 success : function(result) {
-
+                    if (result != null) {
+                        $("#bulletDelvList").html(result);
+                    }
                 }
             });
         }