|
|
@@ -29,6 +29,7 @@ import com.style24.front.biz.service.TsfPlanningService;
|
|
|
import com.style24.front.biz.service.TsfSocialService;
|
|
|
import com.style24.front.biz.thirdparty.SearchEngineDiquest;
|
|
|
import com.style24.front.support.controller.TsfBaseController;
|
|
|
+import com.style24.front.support.env.TsfConstants;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
import com.style24.persistence.TscPageRequest;
|
|
|
import com.style24.persistence.domain.BrandGroup;
|
|
|
@@ -49,6 +50,7 @@ import com.style24.persistence.domain.searchengine.SearchEngine;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
import com.gagaframework.web.parameter.GagaMap;
|
|
|
+import com.gagaframework.web.util.GagaCookieUtil;
|
|
|
|
|
|
/**
|
|
|
* 전시 Controller
|
|
|
@@ -322,9 +324,9 @@ public class TsfDisplayController extends TsfBaseController {
|
|
|
if ("SBM011".equals(brandMain.getContentsLoc()) || "SBMM011".equals(brandMain.getContentsLoc())) {
|
|
|
Plan plan = new Plan();
|
|
|
plan.setBrandGroupNo(Integer.parseInt(paramMap.get("brandGroupNo")));
|
|
|
- if("SBM011".equals(brandMain.getContentsLoc())){
|
|
|
+ if ("SBM011".equals(brandMain.getContentsLoc())) {
|
|
|
plan.setMaxRow(6);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
plan.setMaxRow(2);
|
|
|
}
|
|
|
plan.setFrontGb(TsfSession.getFrontGb());
|
|
|
@@ -931,11 +933,28 @@ public class TsfDisplayController extends TsfBaseController {
|
|
|
public ModelAndView searchLayerForm() {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
- //TODO : 이걸로 적용해야함
|
|
|
-// mav.addObject("trendKeywordList",diquest.getTrendKeywordList());
|
|
|
- mav.addObject("trendKeywordList",null);
|
|
|
+ // 최근검색어 목록
|
|
|
+ Collection<String> recentlyKeywordList = new ArrayList<>();
|
|
|
+ String ckKeywords = GagaCookieUtil.getCookie(TsfSession.getHttpServletRequest(), TsfConstants.CK_PREFIX + "_today_keyword");
|
|
|
+ if (StringUtils.isNotBlank(ckKeywords)) {
|
|
|
+ String[] arrKeywords = ckKeywords.split("\\,");
|
|
|
+ StringBuilder sql = new StringBuilder();
|
|
|
+ if (arrKeywords.length > 0) {
|
|
|
+ for (String keyword : arrKeywords) {
|
|
|
+ if (!StringUtils.isBlank(keyword)) {
|
|
|
+ recentlyKeywordList.add(keyword);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ mav.addObject("recentlyKeywordList", recentlyKeywordList);
|
|
|
+
|
|
|
+ // 인기검색어: TODO 아래 주석된 것으로 적용해야 함
|
|
|
+// mav.addObject("trendKeywordList", diquest.getTrendKeywordList());
|
|
|
+ mav.addObject("trendKeywordList", null);
|
|
|
|
|
|
mav.setViewName(super.getDeviceViewName("display/SearchLayer"));
|
|
|
return mav;
|
|
|
}
|
|
|
+
|
|
|
}
|