|
@@ -54,7 +54,8 @@ public class SearchParam { |
|
@@ -54,7 +54,8 @@ public class SearchParam { |
54
|
.setBrandSeries(req.getSeries()).setGender(req.getGender()).setFilterYearMonth(req.getFilterYearMonth())
|
54
|
.setBrandSeries(req.getSeries()).setGender(req.getGender()).setFilterYearMonth(req.getFilterYearMonth())
|
55
|
.setStartTime(req.getStartTime())
|
55
|
.setStartTime(req.getStartTime())
|
56
|
.setEndTime(req.getEndTime())
|
56
|
.setEndTime(req.getEndTime())
|
57
|
- .setContainYoho(req.getContainYoho());
|
57
|
+ .setContainYoho(req.getContainYoho())
|
|
|
58
|
+ .setRankType(req.getRankType());
|
58
|
return this;
|
59
|
return this;
|
59
|
}
|
60
|
}
|
60
|
|
61
|
|
|
@@ -66,7 +67,8 @@ public class SearchParam { |
|
@@ -66,7 +67,8 @@ public class SearchParam { |
66
|
.setFilterYearMonth(req.getFilterYearMonth())
|
67
|
.setFilterYearMonth(req.getFilterYearMonth())
|
67
|
.setStartTime(req.getStartTime())
|
68
|
.setStartTime(req.getStartTime())
|
68
|
.setEndTime(req.getEndTime())
|
69
|
.setEndTime(req.getEndTime())
|
69
|
- .setContainYoho(req.getContainYoho());
|
70
|
+ .setContainYoho(req.getContainYoho())
|
|
|
71
|
+ .setRankType(req.getRankType());
|
70
|
return this;
|
72
|
return this;
|
71
|
}
|
73
|
}
|
72
|
|
74
|
|
|
@@ -199,14 +201,14 @@ public class SearchParam { |
|
@@ -199,14 +201,14 @@ public class SearchParam { |
199
|
}
|
201
|
}
|
200
|
return this;
|
202
|
return this;
|
201
|
}
|
203
|
}
|
202
|
-
|
204
|
+
|
203
|
public SearchParam setFilterYearMonth(String yearMonth) {
|
205
|
public SearchParam setFilterYearMonth(String yearMonth) {
|
204
|
if (StringUtils.isNotBlank(yearMonth)) {
|
206
|
if (StringUtils.isNotBlank(yearMonth)) {
|
205
|
param.put(SearchConstants.IndexNameConstant.FILTER_YEAR_MONTH, yearMonth);
|
207
|
param.put(SearchConstants.IndexNameConstant.FILTER_YEAR_MONTH, yearMonth);
|
206
|
}
|
208
|
}
|
207
|
return this;
|
209
|
return this;
|
208
|
}
|
210
|
}
|
209
|
-
|
211
|
+
|
210
|
public SearchParam setStartTime(Integer startTime) {
|
212
|
public SearchParam setStartTime(Integer startTime) {
|
211
|
if (startTime != null) {
|
213
|
if (startTime != null) {
|
212
|
param.put(SearchConstants.IndexNameConstant.START_TIME, startTime);
|
214
|
param.put(SearchConstants.IndexNameConstant.START_TIME, startTime);
|
|
@@ -260,6 +262,13 @@ public class SearchParam { |
|
@@ -260,6 +262,13 @@ public class SearchParam { |
260
|
return this;
|
262
|
return this;
|
261
|
}
|
263
|
}
|
262
|
|
264
|
|
|
|
265
|
+ public SearchParam setRankType(String rankType) {
|
|
|
266
|
+ if (StringUtils.isNotEmpty(rankType)) {
|
|
|
267
|
+ param.put(SearchConstants.IndexNameConstant.RANK_TYPE, rankType);
|
|
|
268
|
+ }
|
|
|
269
|
+ return this;
|
|
|
270
|
+ }
|
|
|
271
|
+
|
263
|
public Map<String, Object> getParam() {
|
272
|
public Map<String, Object> getParam() {
|
264
|
return param;
|
273
|
return param;
|
265
|
}
|
274
|
}
|