Showing
1 changed file
with
4 additions
and
0 deletions
@@ -301,6 +301,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | @@ -301,6 +301,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | ||
301 | GrassArticle grassArticle = new GrassArticle(); | 301 | GrassArticle grassArticle = new GrassArticle(); |
302 | grassArticle.setId(req.getArticleId()); | 302 | grassArticle.setId(req.getArticleId()); |
303 | if(isRecommend !=null){ | 303 | if(isRecommend !=null){ |
304 | + if(isRecommend == 0){ | ||
305 | + grassArticle.setIsTop(0); | ||
306 | + grassArticle.setTopTime(0L); | ||
307 | + } | ||
304 | grassArticle.setIsRecommend(isRecommend); | 308 | grassArticle.setIsRecommend(isRecommend); |
305 | grassArticle.setRecommendTime(System.currentTimeMillis()); | 309 | grassArticle.setRecommendTime(System.currentTimeMillis()); |
306 | } | 310 | } |
-
Please register or login to post a comment