优惠券列表默认不支持 【限定、秒杀、预售、定金预售、套餐】
Showing
3 changed files
with
15 additions
and
1 deletions
@@ -40,6 +40,8 @@ public class SearchRequestParams { | @@ -40,6 +40,8 @@ public class SearchRequestParams { | ||
40 | public static final String PARAM_SEARCH_ISLIMITEDBUY = "isLimitbuy"; // 查询是否限购 | 40 | public static final String PARAM_SEARCH_ISLIMITEDBUY = "isLimitbuy"; // 查询是否限购 |
41 | public static final String PARAM_SEARCH_ISADVANCE = "isAdvance"; // 查询是否预售 | 41 | public static final String PARAM_SEARCH_ISADVANCE = "isAdvance"; // 查询是否预售 |
42 | public static final String PARAM_SEARCH_ISDESPOSITADVANCE = "isDepositAdvance"; // 查询是否定金预售 | 42 | public static final String PARAM_SEARCH_ISDESPOSITADVANCE = "isDepositAdvance"; // 查询是否定金预售 |
43 | + | ||
44 | + public static final String PARAM_SEARCH_BUNDLETYPE = "bundleType"; // 售卖类型 | ||
43 | 45 | ||
44 | public static final String PARAM_SEARCH_SPECIALOFFER = "specialoffer"; // ◆是否为促销品 | 46 | public static final String PARAM_SEARCH_SPECIALOFFER = "specialoffer"; // ◆是否为促销品 |
45 | public static final String PARAM_SEARCH_ISSALES = "sales"; // ◆查询是否销售(有货不销售) | 47 | public static final String PARAM_SEARCH_ISSALES = "sales"; // ◆查询是否销售(有货不销售) |
@@ -214,6 +214,11 @@ public class SearchServiceHelper { | @@ -214,6 +214,11 @@ public class SearchServiceHelper { | ||
214 | int[] storeShowStatuss = ConvertUtils.stringToIntArray(paramMap.get(SearchRequestParams.PARAM_SEARCH_STORESHOWSTATUS), ","); | 214 | int[] storeShowStatuss = ConvertUtils.stringToIntArray(paramMap.get(SearchRequestParams.PARAM_SEARCH_STORESHOWSTATUS), ","); |
215 | boolFilter.must(QueryBuilders.termsQuery(ProductIndexEsField.storeShowStatus, storeShowStatuss)); | 215 | boolFilter.must(QueryBuilders.termsQuery(ProductIndexEsField.storeShowStatus, storeShowStatuss)); |
216 | } | 216 | } |
217 | + // 套餐 | ||
218 | + if (this.checkParamNotFiltered(paramMap, filterParamName, SearchRequestParams.PARAM_SEARCH_BUNDLETYPE)) { | ||
219 | + int[] bundleTypes = ConvertUtils.stringToIntArray(paramMap.get(SearchRequestParams.PARAM_SEARCH_BUNDLETYPE), ","); | ||
220 | + boolFilter.must(QueryBuilders.termsQuery(ProductIndexEsField.bundleType, bundleTypes)); | ||
221 | + } | ||
217 | 222 | ||
218 | // //////////////////////////////////////////不支持多个参数/////////////////////////////////////////////////////////// | 223 | // //////////////////////////////////////////不支持多个参数/////////////////////////////////////////////////////////// |
219 | // 是否特价 | 224 | // 是否特价 |
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Service; | @@ -10,6 +10,7 @@ import org.springframework.stereotype.Service; | ||
10 | import com.yoho.search.base.utils.SearchPageIdDefine; | 10 | import com.yoho.search.base.utils.SearchPageIdDefine; |
11 | import com.yoho.search.common.utils.SearchApiResultUtils; | 11 | import com.yoho.search.common.utils.SearchApiResultUtils; |
12 | import com.yoho.search.models.SearchApiResult; | 12 | import com.yoho.search.models.SearchApiResult; |
13 | +import com.yoho.search.service.base.SearchRequestParams; | ||
13 | import com.yoho.search.service.scene.common.AbstractSceneService; | 14 | import com.yoho.search.service.scene.common.AbstractSceneService; |
14 | import com.yoho.search.service.scene.common.SceneProductListService; | 15 | import com.yoho.search.service.scene.common.SceneProductListService; |
15 | import com.yoho.search.service.scene.common.SceneSelectionsService; | 16 | import com.yoho.search.service.scene.common.SceneSelectionsService; |
@@ -32,8 +33,14 @@ public class CouponSceneService extends AbstractSceneService { | @@ -32,8 +33,14 @@ public class CouponSceneService extends AbstractSceneService { | ||
32 | @Override | 33 | @Override |
33 | public void addParamsToParamMap(Map<String, String> paramMap) { | 34 | public void addParamsToParamMap(Map<String, String> paramMap) { |
34 | super.addDefaultParamsToParamMap(paramMap); | 35 | super.addDefaultParamsToParamMap(paramMap); |
36 | + paramMap.put(SearchRequestParams.PARAM_SEARCH_ISLIMITED, "N");// 不支持限定 | ||
37 | + paramMap.put(SearchRequestParams.PARAM_SEARCH_CONTAIN_SECKILL, "N");// 不支持秒杀 | ||
38 | + paramMap.put(SearchRequestParams.PARAM_SEARCH_ISADVANCE, "N");// 不支持预售 | ||
39 | + paramMap.put(SearchRequestParams.PARAM_SEARCH_ISDESPOSITADVANCE, "N");// 不支持定金预售 | ||
40 | + paramMap.put(SearchRequestParams.PARAM_SEARCH_BUNDLETYPE, "0");// 不支持套餐 | ||
41 | + // paramMap.put(SearchRequestParams.PARAM_SEARCH_ISDESPOSITADVANCE,"N");//不支持定金促销 | ||
35 | } | 42 | } |
36 | - | 43 | + |
37 | @Override | 44 | @Override |
38 | public SearchApiResult productList(Map<String, String> paramMap) { | 45 | public SearchApiResult productList(Map<String, String> paramMap) { |
39 | try { | 46 | try { |
-
Please register or login to post a comment