|
|
@@ -215,7 +215,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
// 상품 옵션1(색상) 정보
|
|
|
mav.addObject("goodsOption1List", goodsService.getGoodsOption1List(paramsGoods));
|
|
|
// 상품 옵션2(사이즈) 정보
|
|
|
- if (StringUtils.isEmpty(paramsGoods.getMastrGoodsCd())) paramsGoods.setMastrGoodsCd(goods.getGoodsCd());
|
|
|
+ if (StringUtils.isEmpty(paramsGoods.getMastrGoodsCd())) {
|
|
|
+ paramsGoods.setMastrGoodsCd(goods.getGoodsCd());
|
|
|
+ }
|
|
|
mav.addObject("goodsOption2List", goodsService.getGoodsOption2List(paramsGoods));
|
|
|
// } else {
|
|
|
// mav.addObject("goodsOptionList", goodsService.getGoodsOptionList(paramsGoods));
|
|
|
@@ -241,11 +243,10 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
// 다다익선
|
|
|
paramsGoods.setMaxRownum(1);
|
|
|
mav.addObject("tmtbList", goodsService.getTmtbList(paramsGoods));
|
|
|
-
|
|
|
+
|
|
|
// 사은품
|
|
|
paramsGoods.setMaxRownum(1);
|
|
|
mav.addObject("freeGoodsList", goodsService.getFreeGoodsList(paramsGoods));
|
|
|
-
|
|
|
|
|
|
// 베스트 상품평
|
|
|
Review review = new Review();
|
|
|
@@ -256,14 +257,14 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
review.setRownum(1);
|
|
|
}
|
|
|
mav.addObject("bestReviewList", reviewService.getReviewList(review));
|
|
|
-
|
|
|
+
|
|
|
if (!"P".equals(goods.getFrontGb())) {
|
|
|
paramsGoods.setMaxRownum(20);
|
|
|
- mav.addObject("goodsList", goodsService.getTmtbGoodsList(paramsGoods));
|
|
|
+ mav.addObject("goodsList", goodsService.getTmtbGoodsList(paramsGoods));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 상품 문의건수
|
|
|
Counsel counsel = new Counsel();
|
|
|
counsel.setRelGoodsCd(goods.getGoodsCd());
|
|
|
@@ -288,10 +289,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
boolean isSslServer = Boolean.parseBoolean(hasSsl);
|
|
|
//log.info("isSslServer: [{}]", isSslServer);
|
|
|
setTodayGoodsCd(paramsGoods);
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("params", paramsGoods);
|
|
|
mav.addObject("afLinkCd", afLinkCd); // 파라미터 제휴코드
|
|
|
-
|
|
|
|
|
|
if (TscConstants.GoodsType.DEAL.value().equals(goods.getGoodsType())) {
|
|
|
if ("Y".equals(mobileYn)) {
|
|
|
@@ -670,7 +670,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
|
|
|
// 자사 일반상품- 옵션2(사이즈) 정보
|
|
|
paramsGoods.setOptCd1(colorCd);
|
|
|
- if (StringUtils.isEmpty(paramsGoods.getMastrGoodsCd())) paramsGoods.setMastrGoodsCd(goods.getGoodsCd());
|
|
|
+ if (StringUtils.isEmpty(paramsGoods.getMastrGoodsCd())) {
|
|
|
+ paramsGoods.setMastrGoodsCd(goods.getGoodsCd());
|
|
|
+ }
|
|
|
mav.addObject("goodsOption2List", goodsService.getGoodsOption2List(paramsGoods));
|
|
|
|
|
|
mav.setViewName(super.getDeviceViewName("goods/GoodsInstockAlarmForm"));
|
|
|
@@ -841,13 +843,12 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
*/
|
|
|
@PostMapping("/review/detail/layer")
|
|
|
public ModelAndView goodsReviewDetailForm(Review review) {
|
|
|
- //log.info("goodsReviewDetailForm {}", review);
|
|
|
+ log.info("goodsReviewDetailForm {}", review);
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
// 상품관련 기본값 설정(회원 등급, 앱, PC/모바일 등)
|
|
|
Goods paramsGoods = new Goods();
|
|
|
paramsGoods.setGoodsCd(review.getGoodsCd());
|
|
|
setGoods(paramsGoods);
|
|
|
- // Goods goods = goodsService.getGoodsInfo(paramsGoods);
|
|
|
|
|
|
// 상품 기본정보
|
|
|
mav.addObject("params", paramsGoods);
|
|
|
@@ -859,7 +860,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
mav.setViewName(super.getDeviceViewName("goods/GoodsReviewDetailForm"));
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 상품상세 - 상품평 상세 레이어
|
|
|
* @return
|
|
|
@@ -869,7 +870,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
@PostMapping("/review/detail/list")
|
|
|
@ResponseBody
|
|
|
public GagaMap getReviewDetailList(@RequestBody Review review) {
|
|
|
-
|
|
|
+ log.info("getReviewDetailList {}", review);
|
|
|
GagaMap result = new GagaMap();
|
|
|
result.set("reviewList", reviewService.getReviewList(review));
|
|
|
return result;
|
|
|
@@ -911,7 +912,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
// 상품관련 기본값 설정(회원 등급, 앱, PC/모바일 등)
|
|
|
setGoods(goods);
|
|
|
goods.setMaxRownum(15);
|
|
|
- String [] arrGoodsCd= {"10813855",
|
|
|
+ String[] arrGoodsCd = {"10813855",
|
|
|
"L171TJ561P",
|
|
|
"B172SH710P",
|
|
|
"B192DO995P",
|
|
|
@@ -930,7 +931,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
"L171TJ501P",
|
|
|
"10814432",
|
|
|
"B192SH730P"};
|
|
|
-
|
|
|
+
|
|
|
StringBuilder sql = new StringBuilder();
|
|
|
if (arrGoodsCd.length > 0) {
|
|
|
int idx = 1;
|
|
|
@@ -943,8 +944,8 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
}
|
|
|
}
|
|
|
goods.setGoodsSql(sql.toString());
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
goods.setArrGoodsCd(arrGoodsCd);
|
|
|
mav.addObject("goodsList", goodsService.getRecommendGoodsList(goods));
|
|
|
//log.info("goodsTogetherForm = goods{}", goods);
|
|
|
@@ -968,8 +969,8 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
// 상품관련 기본값 설정(회원 등급, 앱, PC/모바일 등)
|
|
|
setGoods(goods);
|
|
|
goods.setMaxRownum(15);
|
|
|
-
|
|
|
- String [] arrGoodsCd= {"10813855",
|
|
|
+
|
|
|
+ String[] arrGoodsCd = {"10813855",
|
|
|
"L171TJ561P",
|
|
|
"B172SH710P",
|
|
|
"B192DO995P",
|
|
|
@@ -988,7 +989,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
"L171TJ501P",
|
|
|
"10814432",
|
|
|
"B192SH730P"};
|
|
|
-
|
|
|
+
|
|
|
StringBuilder sql = new StringBuilder();
|
|
|
if (arrGoodsCd.length > 0) {
|
|
|
int idx = 1;
|
|
|
@@ -1001,10 +1002,10 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
}
|
|
|
}
|
|
|
goods.setGoodsSql(sql.toString());
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
goods.setArrGoodsCd(arrGoodsCd);
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("goodsList", goodsService.getRecommendGoodsList(goods));
|
|
|
//log.info("goodsRecommendForm = goods{}", goods);
|
|
|
mav.addObject("params", goods);
|
|
|
@@ -1027,8 +1028,8 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
// 상품관련 기본값 설정(회원 등급, 앱, PC/모바일 등)
|
|
|
setGoods(goods);
|
|
|
goods.setMaxRownum(15);
|
|
|
-
|
|
|
- String [] arrGoodsCd= {"10813855",
|
|
|
+
|
|
|
+ String[] arrGoodsCd = {"10813855",
|
|
|
"L171TJ561P",
|
|
|
"B172SH710P",
|
|
|
"B192DO995P",
|
|
|
@@ -1047,7 +1048,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
"L171TJ501P",
|
|
|
"10814432",
|
|
|
"B192SH730P"};
|
|
|
-
|
|
|
+
|
|
|
StringBuilder sql = new StringBuilder();
|
|
|
if (arrGoodsCd.length > 0) {
|
|
|
int idx = 1;
|
|
|
@@ -1060,10 +1061,10 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
}
|
|
|
}
|
|
|
goods.setGoodsSql(sql.toString());
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
goods.setArrGoodsCd(arrGoodsCd);
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("goodsList", goodsService.getRecommendGoodsList(goods));
|
|
|
//log.info("goodsLikeForm = goods{}", goods);
|
|
|
mav.addObject("params", goods);
|
|
|
@@ -1149,7 +1150,9 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
|
|
|
//log.info("goods = {}", goods);
|
|
|
GagaMap result = new GagaMap();
|
|
|
- if (StringUtils.isEmpty(goods.getMastrGoodsCd())) goods.setMastrGoodsCd(goods.getGoodsCd());
|
|
|
+ if (StringUtils.isEmpty(goods.getMastrGoodsCd())) {
|
|
|
+ goods.setMastrGoodsCd(goods.getGoodsCd());
|
|
|
+ }
|
|
|
result.set("dataList", goodsService.getGoodsOption2List(goods));
|
|
|
|
|
|
return result;
|
|
|
@@ -1411,7 +1414,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
wishList = wishListService.getWishListGoodsList(wish);
|
|
|
return wishList;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* ep 쿠폰 목록
|
|
|
*
|
|
|
@@ -1426,7 +1429,7 @@ public class TsfGoodsController extends TsfBaseController {
|
|
|
// 상품관련 기본값 설정(회원 등급, 앱, PC/모바일 등)
|
|
|
Goods paramsGoods = new Goods();
|
|
|
setGoods(paramsGoods);
|
|
|
-
|
|
|
+
|
|
|
// 순서중요 setGoods 이후에 설정
|
|
|
paramsGoods.setAfLinkCd(paramMap.get("afLinkCd"));
|
|
|
paramsGoods.setGoodsCd(paramMap.get("goodsCd"));
|