...
|
...
|
@@ -36,6 +36,7 @@ public class SearchParam { |
|
|
orderMap.put("pools_id_desc", "pools.order_by:desc");
|
|
|
orderMap.put("sale_asc", "salesNum:asc");
|
|
|
orderMap.put("sale_desc", "salesNum:desc");
|
|
|
orderMap.put("st_desc", "saleTime:desc");
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -53,7 +54,8 @@ public class SearchParam { |
|
|
.setBrandSeries(req.getSeries()).setGender(req.getGender()).setFilterYearMonth(req.getFilterYearMonth())
|
|
|
.setStartTime(req.getStartTime())
|
|
|
.setEndTime(req.getEndTime())
|
|
|
.setContainYoho(req.getContainYoho());
|
|
|
.setContainYoho(req.getContainYoho())
|
|
|
.setRankType(req.getRankType());
|
|
|
return this;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -65,7 +67,8 @@ public class SearchParam { |
|
|
.setFilterYearMonth(req.getFilterYearMonth())
|
|
|
.setStartTime(req.getStartTime())
|
|
|
.setEndTime(req.getEndTime())
|
|
|
.setContainYoho(req.getContainYoho());
|
|
|
.setContainYoho(req.getContainYoho())
|
|
|
.setRankType(req.getRankType());
|
|
|
return this;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -198,14 +201,14 @@ public class SearchParam { |
|
|
}
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
|
|
|
public SearchParam setFilterYearMonth(String yearMonth) {
|
|
|
if (StringUtils.isNotBlank(yearMonth)) {
|
|
|
param.put(SearchConstants.IndexNameConstant.FILTER_YEAR_MONTH, yearMonth);
|
|
|
}
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
|
|
|
public SearchParam setStartTime(Integer startTime) {
|
|
|
if (startTime != null) {
|
|
|
param.put(SearchConstants.IndexNameConstant.START_TIME, startTime);
|
...
|
...
|
@@ -259,6 +262,13 @@ public class SearchParam { |
|
|
return this;
|
|
|
}
|
|
|
|
|
|
public SearchParam setRankType(String rankType) {
|
|
|
if (StringUtils.isNotEmpty(rankType)) {
|
|
|
param.put(SearchConstants.IndexNameConstant.RANK_TYPE, rankType);
|
|
|
}
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getParam() {
|
|
|
return param;
|
|
|
}
|
...
|
...
|
|