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
hugufei
8 years ago
Commit
7c99adb0abc9e308e3552aa6febbbfecfd332386
1 parent
abca3a54
>=0.88
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/ProductMqListener.java
consumer/src/main/java/com/yoho/search/mq/ProductMqListener.java
View file @
7c99adb
...
...
@@ -132,7 +132,7 @@ public class ProductMqListener extends AbstractMqListener implements ChannelAwar
if
(
productPrice
!=
null
){
//计算折扣
Double
discount
=
MathUtils
.
getDevideValue
(
productPrice
.
getSalesPrice
(),
productPrice
.
getMarketPrice
(),
2
,
RoundingMode
.
DOWN
);
if
(
discount
<
=
0.88
){
if
(
discount
>
=
0.88
){
productI
.
setIsnew
(
"Y"
);
}
}
...
...
Please
register
or
login
to post a comment