bin2107 5 лет назад
Родитель
Сommit
a260fc2eab

+ 2 - 1
src/main/java/com/style24/front/biz/service/TsfGoodsService.java

@@ -698,7 +698,8 @@ public class TsfGoodsService {
 
 		Collection<Goods> goodsList = new ArrayList<>();
 
-		if (cate.getContentsLoc().equals("SCM002") || cate.getContentsLoc().equals("SBM007") || cate.getContentsLoc().equals("SBM013")) { // 신상품인 경우
+		if (cate.getContentsLoc().equals("SCM002") || cate.getContentsLoc().equals("SBM007") || cate.getContentsLoc().equals("SBM013")
+				|| cate.getContentsLoc().equals("SMM003")) { // 신상품인 경우
 			goodsList = goodsDao.getContentsCategoryGoodsList(cate);
 
 			// 조회된 데이터가 없거나 건수가 20개 미만이면 신규상품(=정상상품) 조회

+ 11 - 21
src/main/java/com/style24/front/biz/web/TsfDisplayController.java

@@ -107,32 +107,22 @@ public class TsfDisplayController extends TsfBaseController {
 				mainLayout.setContentsList(displayService.getContentsList(contents));
 			} else {
 				log.info("nullpoint contentsLoc::::{}", contentsLoc);
-				GoodsSearch goodsSearch = new GoodsSearch();
-				goodsSearch.setCateType("G031_20");
-				goodsSearch.setSoldoutGoodsDisplayYn("N");
-				//goodsSearch.setSoldoutGoodsDisplayYn(envsetService.getSoldoutGoodsDisplayYn(TscConstants.Site.STYLE24.value()));
-				goodsSearch.setCateNo(cate4Srch.getLeafCateNo());
-				goodsSearch.setFrontGb(getSession().getFrontGb());
-				//int floorUnit = envsetService.getPayUnit(TscConstants.Site.STYLE24.value()); // 가격 원단위 관리
-				//goodsSearch.setFloorUnit(floorUnit);
-				if (TsfSession.getInfo() != null) {
-					goodsSearch.setCustGb(TsfSession.getInfo().getCustGb());
-					goodsSearch.setCustNo(TsfSession.getInfo().getCustNo());
-					goodsSearch.setCustGrade(TsfSession.getInfo().getCustGrade());
-				} else {
-					goodsSearch.setCustGb("00");
+				if("SMM001".equals(contentsLoc)){
+					cate4Srch.setMaxRow(3);
+				}else{
+					cate4Srch.setMaxRow(20);
 				}
 
-				/*if("SMM001".equals(contentsLoc)){
-					goodsSearch.setMaxRownum(3);
-				}else{
-					goodsSearch.setMaxRownum(24);
-				}*/
-				//mainLayout.setGoodsList(displayService.getCategoryGoodsList(goodsSearch));
+				Collection<Goods> goodsList = goodsService.getContentsCategoryGoodsList(cate4Srch);
+				mainLayout.setGoodsList(goodsList);
+
+				if("A".equals(mainLayout.getContentsYn())){
+					mainLayout.setContentsList(displayService.getContentsList(contents));
+				}
 			}
 			mainLayoutList.add(mainLayout);
 		}
-		log.info("mainLayoutList::{}", mainLayoutList);
+		//log.info("mainLayoutList::{}", mainLayoutList);
 		mav.addObject("mainLayoutList", mainLayoutList);
 		mav.setViewName(super.getDeviceViewName("display/MallMainForm"));
 

+ 0 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsfDisplay.xml

@@ -448,7 +448,6 @@
 		<if test="brandGroupNo != null and brandGroupNo !=''">
 			AND    BRAND_GROUP_NO  = #{brandGroupNo}
 		</if>
-		AND 	CONTENTS_LOC IN ('SMM001','SMM002','SMM005','SMM008','SBM004','SBM005','SBM006','SBM007','SBM008','SBM009','SBM010','SBM011','SBM013')
 		ORDER BY DISP_ORD, COL_NO
 	</select>
 

Разница между файлами не показана из-за своего большого размера
+ 87 - 1916
src/main/webapp/WEB-INF/views/web/display/MallMainFormWeb.html


Некоторые файлы не были показаны из-за большого количества измененных файлов