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
121bf908a26497eaf13560079744e339871523ce
1 parent
7c99adb0
BUG
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 @
121bf90
...
...
@@ -125,7 +125,7 @@ public class ProductMqListener extends AbstractMqListener implements ChannelAwar
try
{
long
dateCount
=
Integer
.
MAX_VALUE
;
if
(
productI
.
getFirstShelveTime
()>
0
){
dateCount
=
DateUtil
.
getIntervalDays
(
new
Date
(),
new
Date
(
productI
.
getFirstShelveTime
()
*
1000L
));
dateCount
=
DateUtil
.
daysBetween
(
new
Date
(
productI
.
getFirstShelveTime
()
*
1000L
),
new
Date
(
));
}
if
(
dateCount
<=
7
){
ProductPrice
productPrice
=
productPriceService
.
getById
(
productId
);
...
...
Please
register
or
login
to post a comment