|
|
@@ -24,6 +24,7 @@ import com.style24.core.support.env.TscConstants;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.front.biz.service.TsfCounselService;
|
|
|
import com.style24.front.biz.service.TsfCouponService;
|
|
|
+import com.style24.front.biz.service.TsfDisplayService;
|
|
|
import com.style24.front.biz.service.TsfGoodsService;
|
|
|
import com.style24.front.biz.service.TsfRendererService;
|
|
|
import com.style24.front.biz.service.TsfReviewService;
|
|
|
@@ -34,6 +35,7 @@ import com.style24.front.support.security.session.TsfSession;
|
|
|
import com.style24.persistence.TscPageRequest;
|
|
|
import com.style24.persistence.domain.CardPromotion;
|
|
|
import com.style24.persistence.domain.CommonCode;
|
|
|
+import com.style24.persistence.domain.Contents;
|
|
|
import com.style24.persistence.domain.Counsel;
|
|
|
import com.style24.persistence.domain.Coupon;
|
|
|
import com.style24.persistence.domain.Goods;
|
|
|
@@ -90,6 +92,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private TsfWishlistService wishListService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TsfDisplayService displayService;
|
|
|
|
|
|
@Value("${has-ssl}")
|
|
|
private String hasSsl;
|
|
|
@@ -174,7 +179,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
mav.addObject("goodsVideoList", goodsService.getVideoList(goodsVideo));
|
|
|
// 상품 공지
|
|
|
mav.addObject("goodsNoticeList", goodsService.getGoodsNoticeList(paramsGoods));
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
int goodsReviewCnt = 0;
|
|
|
if (TscConstants.GoodsType.DEAL.value().equals(goods.getGoodsType())) { // 딜상품
|
|
|
|
|
|
@@ -263,6 +270,19 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
mav.addObject("goodsList", goodsService.getTmtbGoodsList(paramsGoods));
|
|
|
}
|
|
|
|
|
|
+ // 상품 공통 베너
|
|
|
+ log.info("paramsGoods={}", paramsGoods);
|
|
|
+ Contents contents = new Contents();
|
|
|
+ contents.setContentsLoc("SPM001");
|
|
|
+ contents.setPreview(paramsGoods.getPreview());
|
|
|
+ contents.setViewDt(paramsGoods.getViewDt());
|
|
|
+ contents.setMaxRow(1);
|
|
|
+ if ("P".equals(paramsGoods.getFrontGb())){
|
|
|
+ contents.setCateNo(1714);
|
|
|
+ }else {
|
|
|
+ contents.setCateNo(1724);
|
|
|
+ }
|
|
|
+ mav.addObject("goodsBannerList", displayService.getContentsList(contents));
|
|
|
}
|
|
|
|
|
|
// 상품 문의건수
|
|
|
@@ -1265,6 +1285,20 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
mav.addObject("goodsNotiList", goodsService.getGoodsNotiList(goods));
|
|
|
// 상품 안전인증 정보
|
|
|
mav.addObject("goodsSafeNo", goodsService.getGoodsSafeNo(goods));
|
|
|
+
|
|
|
+ // 상품 공통 베너
|
|
|
+ log.info("paramsGoods={}", paramsGoods);
|
|
|
+ Contents contents = new Contents();
|
|
|
+ contents.setContentsLoc("SPM001");
|
|
|
+ contents.setPreview(paramsGoods.getPreview());
|
|
|
+ contents.setViewDt(paramsGoods.getViewDt());
|
|
|
+ contents.setMaxRow(1);
|
|
|
+ if ("P".equals(paramsGoods.getFrontGb())){
|
|
|
+ contents.setCateNo(1714);
|
|
|
+ }else {
|
|
|
+ contents.setCateNo(1724);
|
|
|
+ }
|
|
|
+ mav.addObject("goodsBannerList", displayService.getContentsList(contents));
|
|
|
|
|
|
mav.addObject("params", paramsGoods);
|
|
|
|