Преглед изворни кода

신상품조회시 frontGb, custGb 누락 추가

jsh77b пре 4 година
родитељ
комит
2f4d203c74

+ 13 - 0
src/main/java/com/style24/front/biz/service/TsfDisplayService.java

@@ -591,6 +591,10 @@ public class TsfDisplayService {
 					cate.setFrontGb(data.getFrontGb());
 					cate.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
 					cate.setMaxRow(maxrow - goodsList.size());
+					
+					// 2021.09.29 신상품조회시 frontGb, custGb 누락 추가
+					cate.setCustGb(TsfSession.getCustGb());
+					
 					goodsList.addAll(goodsDao.getContentsCategoryNewGoodsList(cate));
 				}
 			}
@@ -641,6 +645,10 @@ public class TsfDisplayService {
 					cate.setFrontGb(data.getFrontGb());
 					cate.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
 					cate.setMaxRow(maxrow - goodsList.size());
+					
+					// 2021.09.29 신상품조회시 frontGb, custGb 누락 추가
+					cate.setFrontGb(TsfSession.getFrontGb());
+					cate.setCustGb(TsfSession.getCustGb());
 					goodsList.addAll(goodsDao.getContentsCategoryNewGoodsList(cate));
 				}
 			}
@@ -1101,6 +1109,11 @@ public class TsfDisplayService {
 			tempCate.setCustNo(TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0);
 			tempCate.setSiteCd(data.getSiteCd());
 			tempCate.setCateGb(data.getCateGb());
+			
+			// 2021.09.29 신상품조회시 frontGb, custGb 누락 추가
+			tempCate.setFrontGb(TsfSession.getFrontGb());
+			tempCate.setCustGb(TsfSession.getCustGb());
+			
 			data.setGoodsList(goodsDao.getContentsCategoryNewGoodsList(tempCate));
 		}
 

+ 5 - 0
src/main/java/com/style24/front/biz/web/TsfDisplayController.java

@@ -648,7 +648,12 @@ public class TsfDisplayController extends TsfBaseController {
 						tempCate.setSiteCd(data.getSiteCd());
 						tempCate.setCateGb(data.getCateGb());
 						tempCate.setCate1No(data.getCateNo());
+						
+						// 2021.09.29 신상품조회시 frontGb, custGb 누락 추가
+						tempCate.setFrontGb(TsfSession.getFrontGb());
+						tempCate.setCustGb(TsfSession.getCustGb());
 					}
+					// 
 					mav.addObject("newGoodsList", displayService.getContentsCategoryNewGoodsList(tempCate));
 				}
 			} else if ("SCM003".equals(cateMain.getContentsLoc())) {