|
@@ -7,6 +7,7 @@ import java.util.HashMap;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
+import com.gagaframework.web.parameter.GagaMap;
|
|
|
import com.style24.core.support.env.TscConstants;
|
|
import com.style24.core.support.env.TscConstants;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -27,6 +28,7 @@ import com.style24.front.biz.service.TsfPlanningService;
|
|
|
import com.style24.front.biz.service.TsfSocialService;
|
|
import com.style24.front.biz.service.TsfSocialService;
|
|
|
import com.style24.front.support.controller.TsfBaseController;
|
|
import com.style24.front.support.controller.TsfBaseController;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
|
|
+import com.style24.persistence.TscPageRequest;
|
|
|
import com.style24.persistence.domain.BrandGroup;
|
|
import com.style24.persistence.domain.BrandGroup;
|
|
|
import com.style24.persistence.domain.Cate4Srch;
|
|
import com.style24.persistence.domain.Cate4Srch;
|
|
|
import com.style24.persistence.domain.Contents;
|
|
import com.style24.persistence.domain.Contents;
|
|
@@ -472,9 +474,46 @@ public class TsfDisplayController extends TsfBaseController {
|
|
|
mav.addObject("filterAgeList", displayService.getCategoryFilter(cate4Srch, "AGE"));
|
|
mav.addObject("filterAgeList", displayService.getCategoryFilter(cate4Srch, "AGE"));
|
|
|
mav.addObject("filterSeasonList", displayService.getCategoryFilter(cate4Srch, "SEASON"));
|
|
mav.addObject("filterSeasonList", displayService.getCategoryFilter(cate4Srch, "SEASON"));
|
|
|
mav.addObject("filterColorList", displayService.getCategoryFilter(cate4Srch, "COLOR"));
|
|
mav.addObject("filterColorList", displayService.getCategoryFilter(cate4Srch, "COLOR"));
|
|
|
- mav.addObject("filterBenefitList", displayService.getCategoryFilter(cate4Srch, "BENEFIT"));
|
|
|
|
|
|
|
+ mav.addObject("filterColorList", displayService.getCategoryFilter(cate4Srch, "BENEFIT"));
|
|
|
|
|
+ //mav.addObject("filterBenefitList", displayService.getCategoryFilterBenefit(cate4Srch));
|
|
|
mav.addObject("cateInfo", cate4Srch);
|
|
mav.addObject("cateInfo", cate4Srch);
|
|
|
|
|
|
|
|
return mav;
|
|
return mav;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 카테고리 상품 리스트 조회
|
|
|
|
|
+ * @param
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author bin2107
|
|
|
|
|
+ * @since 2021. 4. 7
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/category/goods/list")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public GagaMap getGoodsList(GoodsSearch goodsSearch){
|
|
|
|
|
+ GagaMap result = new GagaMap();
|
|
|
|
|
+ TscPageRequest pageable = new TscPageRequest((goodsSearch.getPageNo() > 0 ? goodsSearch.getPageNo() - 1 : 0), goodsSearch.getPageSize(), goodsSearch.getPageUnit());
|
|
|
|
|
+
|
|
|
|
|
+ goodsSearch.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
|
|
+ goodsSearch.setFormalGb("G009_10");
|
|
|
|
|
+ goodsSearch.setFrontGb(TsfSession.getFrontGb());
|
|
|
|
|
+ goodsSearch.setCustGb(TsfSession.getCustGb());
|
|
|
|
|
+ if(goodsSearch.getBrandGroupNo()==null || goodsSearch.getBrandGroupNo().equals("")){
|
|
|
|
|
+ goodsSearch.setBrandGroupNo(0);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(goodsSearch.getCate4No()!=null && !goodsSearch.getCate4No().equals("")){
|
|
|
|
|
+ goodsSearch.setCateNo(goodsSearch.getCate4No());
|
|
|
|
|
+ } else if(goodsSearch.getCate3No()!=null && !goodsSearch.getCate3No().equals("")){
|
|
|
|
|
+ goodsSearch.setCateNo(goodsSearch.getCate3No());
|
|
|
|
|
+ } else if(goodsSearch.getCate2No()!=null && !goodsSearch.getCate2No().equals("")){
|
|
|
|
|
+ goodsSearch.setCateNo(goodsSearch.getCate2No());
|
|
|
|
|
+ } else if(goodsSearch.getCate1No()!=null && !goodsSearch.getCate1No().equals("")){
|
|
|
|
|
+ goodsSearch.setCateNo(goodsSearch.getCate1No());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ int totalCnt = displayService.getCategoryGoodsCount(goodsSearch);
|
|
|
|
|
+ log.info("totalCnt::::::::::{}",totalCnt);
|
|
|
|
|
+ pageable.setTotalCount(0);
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|