|
|
@@ -262,7 +262,7 @@ public class SearcherServiceImpl implements SearcherService {
|
|
|
*/
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@Override
|
|
|
- public ModelMap searchComponentGoods(String keyword, PageParams page , HttpServletRequest request) {
|
|
|
+ public ModelMap searchComponentGoods(String keyword, PageParams page , String storeType, HttpServletRequest request) {
|
|
|
if (this.deviceResolver.resolveDevice(request).isMobile()) {
|
|
|
SystemSession.setUser((User)request.getSession().getAttribute("user"));
|
|
|
if (null != SystemSession.getUser() && null!= SystemSession.getUser().getUserUU()){
|
|
|
@@ -288,7 +288,7 @@ public class SearcherServiceImpl implements SearcherService {
|
|
|
|
|
|
Map<String,Object> results = null;
|
|
|
try {
|
|
|
- results = searchService.getGoodsIds(keyword, convertPageParams(page));
|
|
|
+ results = searchService.getGoodsIds(keyword, convertPageParams(page), storeType);
|
|
|
} catch (SearchException e) {
|
|
|
throwSystemException(e);
|
|
|
}
|
|
|
@@ -338,11 +338,11 @@ public class SearcherServiceImpl implements SearcherService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public ModelMap getEnterpriseBySearchKind(String keyword, PageParams page) {
|
|
|
+ public ModelMap getEnterpriseBySearchKind(String keyword, PageParams page, String storeType) {
|
|
|
ModelMap resultMap = new ModelMap();
|
|
|
Map<String, Object> kindsMap = null;
|
|
|
try {
|
|
|
- kindsMap = searchService.getKindsAndSellers(keyword, page.getPage(), page.getCount());
|
|
|
+ kindsMap = searchService.getKindsAndSellers(keyword, page.getPage(), page.getCount(), storeType);
|
|
|
} catch (SearchException e) {
|
|
|
throwSystemException(e);
|
|
|
}
|
|
|
@@ -461,12 +461,12 @@ public class SearcherServiceImpl implements SearcherService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ModelMap getEnterpriseBySearchBrand(String keyword, PageParams page) {
|
|
|
+ public ModelMap getEnterpriseBySearchBrand(String keyword, PageParams page, String storeType) {
|
|
|
|
|
|
ModelMap resultMap = new ModelMap();
|
|
|
SPage<Map<String, Object>> brandsMap = null;
|
|
|
try {
|
|
|
- brandsMap = searchService.getbrandsAndSellers(keyword, page.getPage(), page.getCount());
|
|
|
+ brandsMap = searchService.getbrandsAndSellers(keyword, page.getPage(), page.getCount(), storeType);
|
|
|
} catch (SearchException e) {
|
|
|
throwSystemException(e);
|
|
|
}
|
|
|
@@ -538,12 +538,12 @@ public class SearcherServiceImpl implements SearcherService {
|
|
|
*/
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@Override
|
|
|
- public ModelMap searchComponentGoodsNums(String keyword, PageParams page) {
|
|
|
+ public ModelMap searchComponentGoodsNums(String keyword, PageParams page, String storeType) {
|
|
|
ModelMap map = new ModelMap();
|
|
|
Map<String, Object> results = null;
|
|
|
//Map<String, Object> results = new HashMap<>();
|
|
|
try {
|
|
|
- results = searchService.getGoodsIds(keyword, convertPageParams(page));
|
|
|
+ results = searchService.getGoodsIds(keyword, convertPageParams(page),storeType);
|
|
|
} catch (SearchException e) {
|
|
|
throwSystemException(e);
|
|
|
}
|