Преглед изворни кода

fixbug :全局搜索参数新增storeType,type

wangdy пре 7 година
родитељ
комит
4dd0b4473a

+ 3 - 3
src/main/java/com/uas/platform/b2c/common/search/controller/SearcherController.java

@@ -335,7 +335,7 @@ public class SearcherController {
 			return new ModelMap("total",0);
 		}
 		keyword = keyword.trim();
-		return searcherService.searchComponentGoods(keyword, params, type.replace("-",","), request);
+		return searcherService.searchComponentGoods(keyword, params, "", request);
 	}
 
 	/**
@@ -351,7 +351,7 @@ public class SearcherController {
 			return new ModelMap("total",0);
 		}
 		keyword = keyword.trim();
-		return searcherService.getEnterpriseBySearchKind(keyword, params, type.replace("-",","));
+		return searcherService.getEnterpriseBySearchKind(keyword, params, "");
 	}
 	/**
 	 * 2018.19期搜索接口
@@ -381,7 +381,7 @@ public class SearcherController {
 			return new ModelMap("total",0);
 		}
 		keyword = keyword.trim();
-		return searcherService.getEnterpriseBySearchBrand(keyword, params, type.replace("-",","));
+		return searcherService.getEnterpriseBySearchBrand(keyword, params, "");
 	}
 
 	/**

+ 3 - 3
src/main/java/com/uas/platform/b2c/prod/store/service/impl/StoreInServiceImpl.java

@@ -761,7 +761,7 @@ public class StoreInServiceImpl implements StoreInService {
             switch (field) {
                 // 搜索型号
                 case CODE_FIELD :
-                    map = searcherService.searchComponentGoods(keyword, pageParams, "",request);
+                    map = searcherService.searchComponentGoods(keyword, pageParams, type.replace("-",","),request);
                     List<Goods> goodsList = (List<Goods>) ((Map) map.get("stock")).get("content");
                     if (CollectionUtils.isNotEmpty(goodsList)) {
                         for (Goods goods : goodsList) {
@@ -772,7 +772,7 @@ public class StoreInServiceImpl implements StoreInService {
                     }
                     break;
                 case KIND_FIELD :
-                    map = searcherService.getEnterpriseBySearchKind(keyword, pageParams, "");
+                    map = searcherService.getEnterpriseBySearchKind(keyword, pageParams, type.replace("-",","));
                     List<VendorIntroduction> vendorIntroductions = (List<VendorIntroduction>) ((HashMap) map.get("stock")).get("content");
                     if (CollectionUtils.isNotEmpty(vendorIntroductions)) {
                         for (VendorIntroduction vendorIntroduction : vendorIntroductions) {
@@ -783,7 +783,7 @@ public class StoreInServiceImpl implements StoreInService {
                     }
                     break;
                 case BRAND_FIELD :
-                    map = searcherService.getEnterpriseBySearchBrand(keyword, pageParams, "");
+                    map = searcherService.getEnterpriseBySearchBrand(keyword, pageParams, type.replace("-",","));
                     List<VendorIntroduction> vendorIntroductionsByBrand = (List<VendorIntroduction>) ((HashMap) map.get("stock")).get("content");
                     if (CollectionUtils.isNotEmpty(vendorIntroductionsByBrand)) {
                         for (VendorIntroduction vendorIntroduction : vendorIntroductionsByBrand) {