Toggle navigation
Toggle navigation
This project
Loading...
Sign in
yoho-search
/
yoho-search-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
hugufei
9 years ago
Commit
01e8bb1689d666130b2b0de8e77cafc6394c5493
2 parents
5f3b9034
c428b3dc
Merge branch 'ge_student_price' into test
# Conflicts: # pom.xml
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
service/src/main/java/com/yoho/search/service/SearchServiceHelper.java
service/src/main/java/com/yoho/search/service/SearchServiceHelper.java
View file @
01e8bb1
...
...
@@ -244,6 +244,16 @@ public class SearchServiceHelper {
if
(
paramMap
.
containsKey
(
ISearchConstans
.
PARAM_SEARCH_ISDISCOUNT
)
&&
StringUtils
.
isNotBlank
(
paramMap
.
get
(
ISearchConstans
.
PARAM_SEARCH_ISDISCOUNT
)))
{
boolFilter
.
must
(
FilterBuilders
.
termFilter
(
"isDiscount"
,
paramMap
.
get
(
ISearchConstans
.
PARAM_SEARCH_ISDISCOUNT
)));
}
// 是否为学生价
if
(
paramMap
.
containsKey
(
ISearchConstans
.
PARAM_SEARCH_STUDENTPRICE
)
&&
StringUtils
.
isNotBlank
(
paramMap
.
get
(
ISearchConstans
.
PARAM_SEARCH_STUDENTPRICE
)))
{
boolFilter
.
must
(
FilterBuilders
.
termFilter
(
ISearchConstans
.
PARAM_SEARCH_STUDENTPRICE
,
paramMap
.
get
(
ISearchConstans
.
PARAM_SEARCH_STUDENTPRICE
)));
}
// 是否支持分期
if
(
paramMap
.
containsKey
(
ISearchConstans
.
PARAM_SEARCH_ISINSTALMENT
)
&&
StringUtils
.
isNotBlank
(
paramMap
.
get
(
ISearchConstans
.
PARAM_SEARCH_ISINSTALMENT
)))
{
boolFilter
.
must
(
FilterBuilders
.
termFilter
(
ISearchConstans
.
PARAM_SEARCH_ISINSTALMENT
,
paramMap
.
get
(
ISearchConstans
.
PARAM_SEARCH_ISINSTALMENT
)));
}
// 属性(待研究)
if
(!
"parameter"
.
equals
(
filterParamName
))
{
...
...
@@ -521,6 +531,9 @@ public class SearchServiceHelper {
productMap
.
put
(
"is_promotion"
,
map
.
get
(
"ispromotion"
));
productMap
.
put
(
"yohood_id"
,
map
.
get
(
"yohoodId"
));
productMap
.
put
(
"sales_phrase"
,
map
.
get
(
"salesPhrase"
));
productMap
.
put
(
"student_price"
,
map
.
get
(
"studentPrice"
));
productMap
.
put
(
"is_student_price"
,
map
.
get
(
"isStudentPrice"
));
productMap
.
put
(
"countryId"
,
map
.
get
(
"countryId"
));
// 是否是全球购商品
productMap
.
put
(
"is_global"
,
map
.
get
(
"isGlobal"
)
==
null
?
"N"
:
map
.
get
(
"isGlobal"
));
...
...
Please
register
or
login
to post a comment