|
|
@ -66,7 +66,7 @@ public class GetRecommendProductListService extends SPIBaseService implements Ex
|
|
|
|
// categoryName="女装";
|
|
|
|
// categoryName="女装";
|
|
|
|
double maxPercent = 0;
|
|
|
|
double maxPercent = 0;
|
|
|
|
String maxPercentName = "";
|
|
|
|
String maxPercentName = "";
|
|
|
|
String maxPercentCid = "";
|
|
|
|
String maxPercentCid = "1813"; // 随便默认一个
|
|
|
|
for (int i = 0; i < dsCateLeafArray.size(); ++i) {
|
|
|
|
for (int i = 0; i < dsCateLeafArray.size(); ++i) {
|
|
|
|
JSONObject dsCateLeaf = dsCateLeafArray.getJSONObject(i);
|
|
|
|
JSONObject dsCateLeaf = dsCateLeafArray.getJSONObject(i);
|
|
|
|
String dsCateName = dsCateLeaf.getString("name");
|
|
|
|
String dsCateName = dsCateLeaf.getString("name");
|
|
|
@ -83,7 +83,7 @@ public class GetRecommendProductListService extends SPIBaseService implements Ex
|
|
|
|
// 匹配到的最终类目,每个查询N个
|
|
|
|
// 匹配到的最终类目,每个查询N个
|
|
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
|
|
// params.put("keyword",fields.getKeyword());
|
|
|
|
// params.put("keyword",fields.getKeyword());
|
|
|
|
params.put("topCid", maxPercentCid);
|
|
|
|
params.put("topCid", Long.valueOf(maxPercentCid));
|
|
|
|
// params.put("cid", maxPercentCid);
|
|
|
|
// params.put("cid", maxPercentCid);
|
|
|
|
params.put("sort", "saleCntDesc");
|
|
|
|
params.put("sort", "saleCntDesc");
|
|
|
|
// params.put("ruleIds", fields.getRuleIds());
|
|
|
|
// params.put("ruleIds", fields.getRuleIds());
|
|
|
|