| | |
| | | return;
|
| | | }
|
| | |
|
| | | String kw = goodsClassService.getKwById(id);
|
| | | String kw = goodsClassService.getKeysById(id);
|
| | | filter = "[{\"type\": \"quantype\"}]";
|
| | | JSONObject data = search(kw, pagesize, filter, order, startprice, endprice);
|
| | | // if (StringUtil.isNullOrEmpty(kw)) {
|
| | |
| | | data.put("result", gson2.toJson(re));
|
| | | data.put("count", result.getTaoBaoHead().getDocsfound());
|
| | | return data;
|
| | | }
|
| | |
|
| | | /**
|
| | | * |
| | | * 方法说明: 历史搜索
|
| | | * |
| | | * @author mawurui createTime 2018年4月25日 下午3:04:06
|
| | | * @param acceptData
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "gethistorysearch", method = RequestMethod.POST)
|
| | | public void getHistorySearch(AcceptData acceptData, PrintWriter out) {
|
| | | String bid = getHistorySearchBid(acceptData);
|
| | | List<HistorySearch> historySearchList = historySearchService.getHistorySearch(bid);
|
| | | if (historySearchList == null || historySearchList.size() == 0) {
|
| | | out.print(JsonUtil.loadFalseResult(XcxMiniControllerUtil.NODATA));
|
| | | return;
|
| | | }
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("count", historySearchList.size());
|
| | | Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();
|
| | | data.put("historySearchList", gson.toJson(historySearchList));
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | return;
|
| | | }
|
| | |
|
| | | /**
|
| | | * |
| | | * 方法说明: 清空历史搜索
|
| | | * |
| | | * @author mawurui createTime 2018年4月25日 下午3:04:23
|
| | | * @param acceptData
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "clearhistorysearch", method = RequestMethod.POST)
|
| | | public void clearHistorySearch(AcceptData acceptData, PrintWriter out) {
|
| | | String bid = getHistorySearchBid(acceptData);
|
| | | long count = historySearchService.clearHistorySearch(bid);
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("count", count);
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | return;
|
| | | }
|
| | |
|
| | | /**
|