From 8d84ca36593e33de7e0b604824c471db3587fdb4 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期五, 17 一月 2020 16:53:46 +0800 Subject: [PATCH] Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div --- fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java | 57 +-------------------------------------------------------- 1 files changed, 1 insertions(+), 56 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java b/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java index 986240d..24d9520 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java @@ -58,43 +58,7 @@ @Resource private CustomerContentService customerContentService; - // 浼樻儬鍒� - /* - * public final static int quanType = 1; - * - * public final static int baoyou = 2; - * - * public final static int TMALL = 3; - */ - /** - * - * 鏂规硶璇存槑: 鍏抽敭瀛楁彁绀哄缓璁悳绱� - * - * @author mawurui createTime 2018骞�4鏈�25鏃� 涓嬪崍3:04:52 - * @param acceptData - * @param kw - * @param out - */ - @RequestMapping(value = "suggestsearch", method = RequestMethod.GET) - public void getSugguestSearch(String callback, AcceptData acceptData, String kw, PrintWriter out) { - List<String> list = TaoBaoUtil.getSuguestSearch(kw); - if (list != null && list.size() > 0) { - JSONArray array = new JSONArray(); - int num = 0; - for (String st : list) { - array.add(st); - num = num + 1; - if (num >= 5) { - break; - } - } - out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(array))); - } else { - out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(""))); - } - return; - } /** * @@ -114,12 +78,7 @@ @RequestMapping(value = "search", method = RequestMethod.GET) public void search(String callback, AcceptData acceptData, String kw, int page, String filter, String order, String startprice, String endprice, String fastFilter, PrintWriter out) { - /* - * System system = webControllerUtil.getSystem(acceptData); if(system == - * null){ - * out.print(JsonUtil.loadFalseResult(WebControllerUtil.NOSYSTEM)); - * return; } - */ + if (!StringUtil.isNullOrEmpty(fastFilter)) { if (!StringUtil.isNullOrEmpty(filter)) { JSONArray filterArray = JSONArray.fromObject(filter); @@ -270,20 +229,6 @@ return data; } - /** - * - * 鏂规硶璇存槑: 鑱旂郴瀹㈡湇鎺ュ彛 - * - * @author mawurui createTime 2018骞�4鏈�10鏃� 涓婂崍9:02:41 - */ - @RequestMapping(value = "contactCustomer", method = RequestMethod.GET) - public void contactCustomerService(PrintWriter out) { - String title = "鑱旂郴瀹㈡湇"; - List<CustomerContent> contentList = customerContentService.contactCustomerService(title); - JSONObject data = new JSONObject(); - data.put("contentList", JsonUtil.getSimpleGsonWithDate().toJson(contentList)); - out.print(JsonUtil.loadTrueResult(data)); - } /** * -- Gitblit v1.8.0