|
@@ -92,7 +92,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TsfWishlistService wishListService;
|
|
private TsfWishlistService wishListService;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TsfDisplayService displayService;
|
|
private TsfDisplayService displayService;
|
|
|
|
|
|
|
@@ -179,7 +179,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
mav.addObject("goodsVideoList", goodsService.getVideoList(goodsVideo));
|
|
mav.addObject("goodsVideoList", goodsService.getVideoList(goodsVideo));
|
|
|
// 상품 공지
|
|
// 상품 공지
|
|
|
mav.addObject("goodsNoticeList", goodsService.getGoodsNoticeList(paramsGoods));
|
|
mav.addObject("goodsNoticeList", goodsService.getGoodsNoticeList(paramsGoods));
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
int goodsReviewCnt = 0;
|
|
int goodsReviewCnt = 0;
|
|
|
if (TscConstants.GoodsType.DEAL.value().equals(goods.getGoodsType())) { // 딜상품
|
|
if (TscConstants.GoodsType.DEAL.value().equals(goods.getGoodsType())) { // 딜상품
|
|
|
|
|
|
|
@@ -202,7 +202,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
paramsGoods.setMaxRownum(1);
|
|
paramsGoods.setMaxRownum(1);
|
|
|
goodsCouponList = couponService.getGoodsCouponList(paramsGoods);
|
|
goodsCouponList = couponService.getGoodsCouponList(paramsGoods);
|
|
|
mav.addObject("goodsCouponList", goodsCouponList);
|
|
mav.addObject("goodsCouponList", goodsCouponList);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 다다익선
|
|
// 다다익선
|
|
|
paramsGoods.setMaxRownum(1);
|
|
paramsGoods.setMaxRownum(1);
|
|
|
mav.addObject("tmtbList", goodsService.getTmtbList(paramsGoods));
|
|
mav.addObject("tmtbList", goodsService.getTmtbList(paramsGoods));
|
|
@@ -210,7 +210,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
// 사은품
|
|
// 사은품
|
|
|
paramsGoods.setMaxRownum(1);
|
|
paramsGoods.setMaxRownum(1);
|
|
|
mav.addObject("freeGoodsList", goodsService.getFreeGoodsList(paramsGoods));
|
|
mav.addObject("freeGoodsList", goodsService.getFreeGoodsList(paramsGoods));
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 딜용 상품평건수
|
|
// 딜용 상품평건수
|
|
|
Review review = new Review();
|
|
Review review = new Review();
|
|
|
review.setGoodsCd(goods.getGoodsCd());
|
|
review.setGoodsCd(goods.getGoodsCd());
|
|
@@ -238,18 +238,17 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
mav.addObject("goodsNotiList", goodsService.getGoodsNotiList(goods));
|
|
mav.addObject("goodsNotiList", goodsService.getGoodsNotiList(goods));
|
|
|
// 상품 안전인증 정보
|
|
// 상품 안전인증 정보
|
|
|
mav.addObject("goodsSafeNo", goodsService.getGoodsSafeNo(goods));
|
|
mav.addObject("goodsSafeNo", goodsService.getGoodsSafeNo(goods));
|
|
|
-
|
|
|
|
|
|
|
|
|
|
} else if (TscConstants.GoodsType.SET.value().equals(goods.getGoodsType())) { // 셋트상품
|
|
} else if (TscConstants.GoodsType.SET.value().equals(goods.getGoodsType())) { // 셋트상품
|
|
|
mav.addObject("goodsComposeList", goodsService.getGoodsSetComposeList(paramsGoods));
|
|
mav.addObject("goodsComposeList", goodsService.getGoodsSetComposeList(paramsGoods));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 룩북
|
|
// 룩북
|
|
|
Lookbook lookbook = new Lookbook();
|
|
Lookbook lookbook = new Lookbook();
|
|
|
lookbook.setGoodsCd(paramsGoods.getGoodsCd());
|
|
lookbook.setGoodsCd(paramsGoods.getGoodsCd());
|
|
|
lookbook.setCustNo(paramsGoods.getCustNo());
|
|
lookbook.setCustNo(paramsGoods.getCustNo());
|
|
|
mav.addObject("lookbookList", coreLookbookService.getLookbookListForGoods(lookbook));
|
|
mav.addObject("lookbookList", coreLookbookService.getLookbookListForGoods(lookbook));
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 상품쿠폰
|
|
// 상품쿠폰
|
|
|
paramsGoods.setMaxRownum(1);
|
|
paramsGoods.setMaxRownum(1);
|
|
|
mav.addObject("goodsCouponList", couponService.getGoodsCouponList(paramsGoods));
|
|
mav.addObject("goodsCouponList", couponService.getGoodsCouponList(paramsGoods));
|
|
@@ -284,9 +283,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
contents.setPreview(paramsGoods.getPreview());
|
|
contents.setPreview(paramsGoods.getPreview());
|
|
|
contents.setViewDt(paramsGoods.getViewDt());
|
|
contents.setViewDt(paramsGoods.getViewDt());
|
|
|
contents.setMaxRow(1);
|
|
contents.setMaxRow(1);
|
|
|
- if ("P".equals(paramsGoods.getFrontGb())){
|
|
|
|
|
|
|
+ if ("P".equals(paramsGoods.getFrontGb())) {
|
|
|
contents.setCateNo(1714);
|
|
contents.setCateNo(1714);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
contents.setCateNo(1724);
|
|
contents.setCateNo(1724);
|
|
|
}
|
|
}
|
|
|
mav.addObject("goodsBannerList", displayService.getContentsList(contents));
|
|
mav.addObject("goodsBannerList", displayService.getContentsList(contents));
|
|
@@ -611,8 +610,12 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
|
|
|
|
|
paramsGoods.setArrGoodsCd(arrGoodsCd);
|
|
paramsGoods.setArrGoodsCd(arrGoodsCd);
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- // 쿠폰정보
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ // 상품 즉시할인 쿠폰정보
|
|
|
|
|
+ paramsGoods.setMaxRownum(1);
|
|
|
|
|
+ mav.addObject("goodsCoupon1List", couponService.getGoodsCoupon1List(paramsGoods));
|
|
|
|
|
+
|
|
|
|
|
+ // 상품 다운로드 쿠폰
|
|
|
paramsGoods.setMaxRownum(1);
|
|
paramsGoods.setMaxRownum(1);
|
|
|
mav.addObject("goodsCouponList", couponService.getGoodsCouponList(paramsGoods));
|
|
mav.addObject("goodsCouponList", couponService.getGoodsCouponList(paramsGoods));
|
|
|
// 다다익선
|
|
// 다다익선
|
|
@@ -1142,9 +1145,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
result.set("params", paramsGoods);
|
|
result.set("params", paramsGoods);
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
log.info("createGoodsCoupon goods {}", goods);
|
|
log.info("createGoodsCoupon goods {}", goods);
|
|
|
- if (TscConstants.GoodsType.DEAL.value().equals(goods.getGoodsType())) {
|
|
|
|
|
|
|
+ if (TscConstants.GoodsType.DEAL.value().equals(goods.getGoodsType())) {
|
|
|
Collection<Goods> goodsDealComposeList = goodsService.getGoodsDealComposeList(paramsGoods);
|
|
Collection<Goods> goodsDealComposeList = goodsService.getGoodsDealComposeList(paramsGoods);
|
|
|
// 상품쿠폰
|
|
// 상품쿠폰
|
|
|
if (goodsDealComposeList != null && !goodsDealComposeList.isEmpty()) {
|
|
if (goodsDealComposeList != null && !goodsDealComposeList.isEmpty()) {
|
|
@@ -1158,7 +1161,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
paramsGoods.setArrGoodsCd(arrGoodsCd);
|
|
paramsGoods.setArrGoodsCd(arrGoodsCd);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 쿠폰발급
|
|
// 쿠폰발급
|
|
|
// ERROR_10: 발급가능 쿠폰없음, 20: 발급완료 쿠폰, 30: 발급받은 쿠폰
|
|
// ERROR_10: 발급가능 쿠폰없음, 20: 발급완료 쿠폰, 30: 발급받은 쿠폰
|
|
|
//죄송합니다. 쿠폰이 모두 소진되었습니다
|
|
//죄송합니다. 쿠폰이 모두 소진되었습니다
|
|
@@ -1332,7 +1335,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
mav.addObject("goodsNotiList", goodsService.getGoodsNotiList(goods));
|
|
mav.addObject("goodsNotiList", goodsService.getGoodsNotiList(goods));
|
|
|
// 상품 안전인증 정보
|
|
// 상품 안전인증 정보
|
|
|
mav.addObject("goodsSafeNo", goodsService.getGoodsSafeNo(goods));
|
|
mav.addObject("goodsSafeNo", goodsService.getGoodsSafeNo(goods));
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 상품 공통 베너
|
|
// 상품 공통 베너
|
|
|
log.info("paramsGoods={}", paramsGoods);
|
|
log.info("paramsGoods={}", paramsGoods);
|
|
|
Contents contents = new Contents();
|
|
Contents contents = new Contents();
|
|
@@ -1340,9 +1343,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
contents.setPreview(paramsGoods.getPreview());
|
|
contents.setPreview(paramsGoods.getPreview());
|
|
|
contents.setViewDt(paramsGoods.getViewDt());
|
|
contents.setViewDt(paramsGoods.getViewDt());
|
|
|
contents.setMaxRow(1);
|
|
contents.setMaxRow(1);
|
|
|
- if ("P".equals(paramsGoods.getFrontGb())){
|
|
|
|
|
|
|
+ if ("P".equals(paramsGoods.getFrontGb())) {
|
|
|
contents.setCateNo(1714);
|
|
contents.setCateNo(1714);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
contents.setCateNo(1724);
|
|
contents.setCateNo(1724);
|
|
|
}
|
|
}
|
|
|
mav.addObject("goodsBannerList", displayService.getContentsList(contents));
|
|
mav.addObject("goodsBannerList", displayService.getContentsList(contents));
|