|
|
@@ -316,6 +316,9 @@ public class SearcherController {
|
|
|
@RequestMapping(value = "/201819", method = RequestMethod.GET, params = "type=component")
|
|
|
@ResponseBody
|
|
|
public ModelMap getCompGoodsBySearch(PageParams params, String keyword, HttpServletRequest request) {
|
|
|
+ if (StringUtils.isEmpty(keyword) || "*".equals(keyword)) {
|
|
|
+ return new ModelMap("total",0);
|
|
|
+ }
|
|
|
return searcherService.searchComponentGoods(keyword, params, request);
|
|
|
}
|
|
|
|
|
|
@@ -328,6 +331,9 @@ public class SearcherController {
|
|
|
@RequestMapping(value = "/201819", method = RequestMethod.GET, params = "type=kind")
|
|
|
@ResponseBody
|
|
|
public ModelMap getEnterpriseBySearchProduct(PageParams params, String keyword, HttpServletRequest request) {
|
|
|
+ if (StringUtils.isEmpty(keyword) || "*".equals(keyword)) {
|
|
|
+ return new ModelMap("total",0);
|
|
|
+ }
|
|
|
return searcherService.getEnterpriseBySearchKind(keyword, params);
|
|
|
}
|
|
|
/**
|
|
|
@@ -339,6 +345,9 @@ public class SearcherController {
|
|
|
@RequestMapping(value = "/201819", method = RequestMethod.GET, params = "type=store")
|
|
|
@ResponseBody
|
|
|
public ModelMap getEnterpriseBySearchStore(PageParams params, String keyword, HttpServletRequest request) {
|
|
|
+ if (StringUtils.isEmpty(keyword) || "*".equals(keyword)) {
|
|
|
+ return new ModelMap("total",0);
|
|
|
+ }
|
|
|
return searcherService.getEnterpriseBySearchStore(keyword, params, request);
|
|
|
}
|
|
|
/**
|
|
|
@@ -350,6 +359,9 @@ public class SearcherController {
|
|
|
@RequestMapping(value = "/201819", method = RequestMethod.GET, params = "type=brand")
|
|
|
@ResponseBody
|
|
|
public ModelMap getEnterpriseBySearchBrand(PageParams params, String keyword, HttpServletRequest request) {
|
|
|
+ if (StringUtils.isEmpty(keyword) || "*".equals(keyword)) {
|
|
|
+ return new ModelMap("total",0);
|
|
|
+ }
|
|
|
return searcherService.getEnterpriseBySearchBrand(keyword, params);
|
|
|
}
|
|
|
|