|
|
@@ -330,12 +330,12 @@ public class SearcherController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/201819", method = RequestMethod.GET, params = "type=component")
|
|
|
@ResponseBody
|
|
|
- public ModelMap getCompGoodsBySearch(PageParams params, String keyword, String storeType, HttpServletRequest request) {
|
|
|
+ public ModelMap getCompGoodsBySearch(PageParams params, String keyword, String type, HttpServletRequest request) {
|
|
|
if (StringUtils.isEmpty(keyword) || "*".equals(keyword)) {
|
|
|
return new ModelMap("total",0);
|
|
|
}
|
|
|
keyword = keyword.trim();
|
|
|
- return searcherService.searchComponentGoods(keyword, params, storeType.replace("-",","), request);
|
|
|
+ return searcherService.searchComponentGoods(keyword, params, type.replace("-",","), request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -346,12 +346,12 @@ public class SearcherController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/201819", method = RequestMethod.GET, params = "type=kind")
|
|
|
@ResponseBody
|
|
|
- public ModelMap getEnterpriseBySearchProduct(PageParams params, String keyword, String storeType, HttpServletRequest request) {
|
|
|
+ public ModelMap getEnterpriseBySearchProduct(PageParams params, String keyword, String type, HttpServletRequest request) {
|
|
|
if (StringUtils.isEmpty(keyword) || "*".equals(keyword)) {
|
|
|
return new ModelMap("total",0);
|
|
|
}
|
|
|
keyword = keyword.trim();
|
|
|
- return searcherService.getEnterpriseBySearchKind(keyword, params, storeType.replace("-",","));
|
|
|
+ return searcherService.getEnterpriseBySearchKind(keyword, params, type.replace("-",","));
|
|
|
}
|
|
|
/**
|
|
|
* 2018.19期搜索接口
|
|
|
@@ -376,12 +376,12 @@ public class SearcherController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/201819", method = RequestMethod.GET, params = "type=brand")
|
|
|
@ResponseBody
|
|
|
- public ModelMap getEnterpriseBySearchBrand(PageParams params, String keyword, String storeType, HttpServletRequest request) {
|
|
|
+ public ModelMap getEnterpriseBySearchBrand(PageParams params, String keyword, String type, HttpServletRequest request) {
|
|
|
if (StringUtils.isEmpty(keyword) || "*".equals(keyword)) {
|
|
|
return new ModelMap("total",0);
|
|
|
}
|
|
|
keyword = keyword.trim();
|
|
|
- return searcherService.getEnterpriseBySearchBrand(keyword, params, storeType.replace("-",","));
|
|
|
+ return searcherService.getEnterpriseBySearchBrand(keyword, params, type.replace("-",","));
|
|
|
}
|
|
|
|
|
|
/**
|