From d2357693d74ec048ed19e483ea29f87d823cde5f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 22 七月 2019 16:26:23 +0800
Subject: [PATCH] 资金明细添加京东,拼多多兼容

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v1/SearchController.java |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 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 257ec87..7a79777 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,21 @@
 	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;
 		}
+		
+		// 榛樿娣樺疂
+		if (goodsType == null) {
+			goodsType = Constant.SOURCE_TYPE_TAOBAO;
+		}
+		
 		List<SuperHotSearch> superHotSearchList = superHotSearchSerivce
-				.getSuperHotSearchBySystemIdCache(system.getId());
+				.getSuperHotSearchBySystemIdCache(system.getId(), goodsType);
 		if (superHotSearchList == null || superHotSearchList.size() == 0) {
 			out.print(JsonUtil.loadFalseResult("娌℃湁鏁版嵁"));
 			return;

--
Gitblit v1.8.0