|
@@ -279,6 +279,8 @@ public class TsaShoplinkerService {
|
|
|
private String setDetailDesc(ShoplinkerGoods shoplinkerGoods, ShoplinkerGoods goodsMap) {
|
|
private String setDetailDesc(ShoplinkerGoods shoplinkerGoods, ShoplinkerGoods goodsMap) {
|
|
|
|
|
|
|
|
String htmlDesc = "";
|
|
String htmlDesc = "";
|
|
|
|
|
+ ShoplinkerGoods imgParam = new ShoplinkerGoods(); // shoplinkerGoods에 set하지 않도록 주의(미초기화 시 그다음 상품정보에 영향을 미침)
|
|
|
|
|
+ imgParam.setGoodsCd(shoplinkerGoods.getGoodsCd());
|
|
|
|
|
|
|
|
// 1. 기존 상세내용
|
|
// 1. 기존 상세내용
|
|
|
String descStr = goodsMap.getDetailDesc();
|
|
String descStr = goodsMap.getDetailDesc();
|
|
@@ -301,8 +303,8 @@ public class TsaShoplinkerService {
|
|
|
String imgPath = env.getProperty("upload.goods.view");
|
|
String imgPath = env.getProperty("upload.goods.view");
|
|
|
|
|
|
|
|
// 메인컬러에 매칭되는 이미지만 가져옴.(상세,페브릭,라벨등..)
|
|
// 메인컬러에 매칭되는 이미지만 가져옴.(상세,페브릭,라벨등..)
|
|
|
- shoplinkerGoods.setExtmallDescImgYn("Y");
|
|
|
|
|
- Collection<ShoplinkerGoods> imgList = admShoplinkerDao.getGoodsImageList(shoplinkerGoods);
|
|
|
|
|
|
|
+ imgParam.setExtmallDescImgYn("Y");
|
|
|
|
|
+ Collection<ShoplinkerGoods> imgList = admShoplinkerDao.getGoodsImageList(imgParam);
|
|
|
|
|
|
|
|
String dColor = goodsMap.getMainColorEnm(); //대표컬러
|
|
String dColor = goodsMap.getMainColorEnm(); //대표컬러
|
|
|
String dImgFront = ""; //대표상품 앞판컷
|
|
String dImgFront = ""; //대표상품 앞판컷
|
|
@@ -363,9 +365,9 @@ public class TsaShoplinkerService {
|
|
|
|
|
|
|
|
// 2) 상세내용 - 상품옵션별 색상
|
|
// 2) 상세내용 - 상품옵션별 색상
|
|
|
String colorDesc = "";
|
|
String colorDesc = "";
|
|
|
- shoplinkerGoods.setExtmallDescImgYn("N");
|
|
|
|
|
- shoplinkerGoods.setColorListYn("Y"); // 색상별 이미지 정보만 가져옴
|
|
|
|
|
- Collection<ShoplinkerGoods> imgColorList = admShoplinkerDao.getGoodsImageList(shoplinkerGoods);
|
|
|
|
|
|
|
+ imgParam.setExtmallDescImgYn("N");
|
|
|
|
|
+ imgParam.setColorListYn("Y"); // 색상별 이미지 정보만 가져옴
|
|
|
|
|
+ Collection<ShoplinkerGoods> imgColorList = admShoplinkerDao.getGoodsImageList(imgParam);
|
|
|
colorDesc = "<div class=\"st_view_option_box\" style=\"margin-top: 100px;text-align: center; color:#222;\">";
|
|
colorDesc = "<div class=\"st_view_option_box\" style=\"margin-top: 100px;text-align: center; color:#222;\">";
|
|
|
String tmpColor = "";
|
|
String tmpColor = "";
|
|
|
for(ShoplinkerGoods ic : imgColorList ) {
|
|
for(ShoplinkerGoods ic : imgColorList ) {
|