|
|
@@ -554,7 +554,13 @@ public class TsfDisplayService {
|
|
|
* @date 2021. 3. 30
|
|
|
*/
|
|
|
public Collection<Contents> getContentsForGoods(Contents contents) {
|
|
|
- Collection<Contents> contentsList = displayDao.getContentsList(contents);
|
|
|
+ Collection<Contents> contentsList = new ArrayList<>();
|
|
|
+ if(contents.getContentsLoc().equals("SMM007")){
|
|
|
+ contentsList = displayDao.getBrandpickTitleBrandList(contents);
|
|
|
+ }else{
|
|
|
+ contentsList = displayDao.getContentsList(contents);
|
|
|
+ }
|
|
|
+
|
|
|
Collection<Goods> goodsList = new ArrayList<>();
|
|
|
Cate4Srch tempContents = new Cate4Srch();
|
|
|
for (Contents data : contentsList) {
|
|
|
@@ -563,6 +569,9 @@ public class TsfDisplayService {
|
|
|
tempContents.setMaxRow(20);
|
|
|
tempContents.setCustNo(TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0);
|
|
|
if ("SMM007".equals(data.getContentsLoc())) {
|
|
|
+ if(!"".equals(data.getBrandGroupNo()) && !"null".equals(data.getBrandGroupNo()) && !data.getBrandGroupNo().equals(null)){
|
|
|
+ tempContents.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
|
|
|
+ }
|
|
|
data.setFrontGb(TsfSession.getFrontGb());
|
|
|
data.setBannerList(displayDao.getContentsBannerList(data));
|
|
|
}
|
|
|
@@ -964,4 +973,15 @@ public class TsfDisplayService {
|
|
|
return goodsDao.getContentsCategoryNewGoodsList(cate4Srch);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 몰메인 브랜드픽 타이틀 브랜드 목록
|
|
|
+ * @param contents - 컨텐츠 정보
|
|
|
+ * @return
|
|
|
+ * @author bin2107
|
|
|
+ * @date 2021. 7. 23
|
|
|
+ */
|
|
|
+ public Collection<Contents> getBrandpickTitleBrandList(Contents contents) {
|
|
|
+ return displayDao.getBrandpickTitleBrandList(contents);
|
|
|
+ }
|
|
|
+
|
|
|
}
|