|
@@ -18,6 +18,10 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
+import com.gagaframework.web.parameter.GagaMap;
|
|
|
|
|
+import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
|
|
+import com.gagaframework.web.rest.server.GagaResponseStatus;
|
|
|
|
|
+import com.gagaframework.web.util.GagaCookieUtil;
|
|
|
import com.style24.core.biz.service.TscEnvsetService;
|
|
import com.style24.core.biz.service.TscEnvsetService;
|
|
|
import com.style24.core.biz.service.TscLookbookService;
|
|
import com.style24.core.biz.service.TscLookbookService;
|
|
|
import com.style24.core.support.env.TscConstants;
|
|
import com.style24.core.support.env.TscConstants;
|
|
@@ -57,11 +61,6 @@ import com.style24.persistence.domain.searchengine.FeedbackResponse;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
-import com.gagaframework.web.parameter.GagaMap;
|
|
|
|
|
-import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
|
|
-import com.gagaframework.web.rest.server.GagaResponseStatus;
|
|
|
|
|
-import com.gagaframework.web.util.GagaCookieUtil;
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 상품 Controller
|
|
* 상품 Controller
|
|
|
*
|
|
*
|
|
@@ -618,6 +617,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
@PostMapping("/coupon/layer")
|
|
@PostMapping("/coupon/layer")
|
|
|
public ModelAndView goodsCouponForm(Goods goods) {
|
|
public ModelAndView goodsCouponForm(Goods goods) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
+ Collection<Coupon> goodsCouponList;
|
|
|
// 상품관련 기본값 설정(회원 등급, 앱, PC/모바일 등)
|
|
// 상품관련 기본값 설정(회원 등급, 앱, PC/모바일 등)
|
|
|
setGoods(goods);
|
|
setGoods(goods);
|
|
|
|
|
|
|
@@ -634,13 +634,22 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
String[] arrGoodsCd = arrGoodsList.stream().toArray(String[]::new);
|
|
String[] arrGoodsCd = arrGoodsList.stream().toArray(String[]::new);
|
|
|
goods.setArrGoodsCd(arrGoodsCd);
|
|
goods.setArrGoodsCd(arrGoodsCd);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 딜상품쿠폰정보(중복제거)
|
|
|
|
|
+ goodsCouponList = couponService.getGoodsDealCouponList(goods);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 상품쿠폰정보
|
|
|
|
|
+ goodsCouponList = couponService.getGoodsCouponList(goods);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
// 상품쿠폰정보
|
|
// 상품쿠폰정보
|
|
|
- mav.addObject("goodsCouponList", couponService.getGoodsCouponList(goods));
|
|
|
|
|
|
|
+ mav.addObject("goodsCouponList", goodsCouponList);
|
|
|
|
|
+
|
|
|
// 상품 기본정보
|
|
// 상품 기본정보
|
|
|
mav.addObject("params", goods);
|
|
mav.addObject("params", goods);
|
|
|
|
|
|
|
|
mav.setViewName(super.getDeviceViewName("goods/GoodsCouponForm"));
|
|
mav.setViewName(super.getDeviceViewName("goods/GoodsCouponForm"));
|
|
|
|
|
+
|
|
|
return mav;
|
|
return mav;
|
|
|
}
|
|
}
|
|
|
|
|
|