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
a7cdd8c6cee9a7736099a9a8a7c45f07edf17e69
1 parent
458cddc5
搜索支持学生返币
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
consumer/src/main/java/com/yoho/search/mq/ProductPriceMqListener.java
consumer/src/main/java/com/yoho/search/mq/ProductPriceMqListener.java
View file @
a7cdd8c
...
...
@@ -164,7 +164,7 @@ public class ProductPriceMqListener extends AbstractMqListener implements Channe
indexData
.
put
(
"isDiscount"
,
isDiscount
);
// 是否支持返币 当学生返币比率大于0时支持返币
indexData
.
put
(
"isstudentrebate"
,
productPrice
.
getStudentCoinRate
()
==
null
||
productPrice
.
getStudentCoinRate
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
"
0"
:
"1
"
);
indexData
.
put
(
"isstudentrebate"
,
productPrice
.
getStudentCoinRate
()
==
null
||
productPrice
.
getStudentCoinRate
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
"
N"
:
"Y
"
);
// 更新商品索引
this
.
updateProductIndexWithDataMap
(
indexData
,
productId
,
key
,
begin
);
...
...
Please
register
or
login
to post a comment