Toggle navigation
Toggle navigation
This project
Loading...
Sign in
yoho-search
/
yoho-search-consumer
·
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
Email Patches
Plain Diff
Browse Files
Authored by
Gino Zhang
8 years ago
Commit
8386bc43d86c854b135cc51f4afc6c4f0e68ee6e
1 parent
4416c81a
搜索支持学生返币
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
consumer/src/main/java/com/yoho/search/mq/ProductPriceMqListener.java
consumer/src/main/java/com/yoho/search/mq/ProductPriceMqListener.java
View file @
8386bc4
...
...
@@ -163,6 +163,9 @@ public class ProductPriceMqListener extends AbstractMqListener implements Channe
indexData
.
put
(
"specialoffer"
,
specialoffer
);
indexData
.
put
(
"isDiscount"
,
isDiscount
);
// 是否支持返币 当学生返币比率大于0时支持返币
indexData
.
put
(
"isstudentrebate"
,
productPrice
.
getStudentCoinRate
()
==
null
||
productPrice
.
getStudentCoinRate
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
"0"
:
"1"
);
// 更新商品索引
this
.
updateProductIndexWithDataMap
(
indexData
,
productId
,
key
,
begin
);
}
...
...
Please
register
or
login
to post a comment