From fe16122ad77ccd69c7f3c6dfff123c0c3aa3d35f Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期三, 17 七月 2019 10:05:12 +0800
Subject: [PATCH] 商品详情

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v1/SearchController.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/SearchController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/SearchController.java
index 609dee9..5a9d0c2 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/SearchController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/SearchController.java
@@ -15,7 +15,6 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.yeshi.utils.JsonUtil;
-import org.yeshi.utils.taobao.TaoBaoAuthUtil;
 import org.yeshi.utils.taobao.TbImgUtil;
 
 import com.google.gson.Gson;
@@ -99,15 +98,16 @@
 	private DaTaoKeGoodsDetailService daTaoKeGoodsDetailService;
 
 	@RequestMapping(value = "gethotsearch", method = RequestMethod.POST)
-	public void getHotSearch(AcceptData acceptData, PrintWriter out) {
+	public void getHotSearch(AcceptData acceptData, Integer goodsType, PrintWriter out) {
 		BusinessSystem system = businessSystemService.getBusinessSystemCache(acceptData.getPlatform(),
 				acceptData.getPackages());
 		if (system == null) {
 			out.print(JsonUtil.loadFalseResult("绯荤粺涓嶅瓨鍦�"));
 			return;
 		}
+		
 		List<SuperHotSearch> superHotSearchList = superHotSearchSerivce
-				.getSuperHotSearchBySystemIdCache(system.getId());
+				.getSuperHotSearchBySystemIdCache(system.getId(), goodsType);
 		if (superHotSearchList == null || superHotSearchList.size() == 0) {
 			out.print(JsonUtil.loadFalseResult("娌℃湁鏁版嵁"));
 			return;
@@ -482,7 +482,7 @@
 				listRecommendWords = new ArrayList<String>();
 			}
 
-			List<TaoBaoShopVO> listShop =null; //taoBaoShopService.getShopByKey(kw);
+			List<TaoBaoShopVO> listShop =taoBaoShopService.getShopByKey(kw);
 			if (listShop != null && listShop.size() > 0 && listShop.get(0).getListGoods() != null
 					&& listShop.get(0).getListGoods().size() > 2) {
 				data.put("shop", JsonUtil.getApiCommonGson().toJson(listShop.get(0)));

--
Gitblit v1.8.0