From 20d1a38a0f8049873f1fbbaef96c22e971ea9d77 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期三, 17 七月 2019 15:50:09 +0800
Subject: [PATCH] 搜索词

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java
index c2edc1b..f33299c 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java
@@ -151,6 +151,9 @@
 	}
 
 	private CommonContentResult get9K9Content(String cid, int page, int pageSize) {
+		if (pageSize == 20)
+			pageSize = 50;
+
 		DaTaoKeGoodsResult result = null;
 		if ("-1".equalsIgnoreCase(cid)) {
 			result = DaTaoKeApiUtil.search("", null, null, new BigDecimal("10"), page, pageSize,
@@ -264,7 +267,7 @@
 		if ("1".equalsIgnoreCase(cid)) {// 澶ф窐瀹㈡暟鎹�
 			List<Integer> cidList = new ArrayList<>();
 			cidList.add(2);// 姣嶅┐
-			result = DaTaoKeApiUtil.search("", null, null, null, page, pageSize, DaTaoKeApiUtil.SORT_DEFAULT);
+			result = DaTaoKeApiUtil.search("", cidList, null, null, page, pageSize, DaTaoKeApiUtil.SORT_DEFAULT);
 			List<TaoBaoGoodsBrief> goodsList = new ArrayList<>();
 			long count = 0;
 			if (result != null) {
@@ -472,7 +475,7 @@
 		cidList.add(7);
 		cidList.add(13);
 		int sort = getCommonSort(cid);
-		result = DaTaoKeApiUtil.search("", null, null, null, page, pageSize, sort);
+		result = DaTaoKeApiUtil.search("", cidList, null, null, page, pageSize, sort);
 		DaTaoKeGoodsResult result1 = DaTaoKeApiUtil.search("杩愬姩 鐢�", cidList, null, null, page, pageSize, sort);
 		List<TaoBaoGoodsBrief> goodsList = new ArrayList<>();
 		long count = 0;

--
Gitblit v1.8.0