Showing
1 changed file
with
2 additions
and
0 deletions
@@ -98,6 +98,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | @@ -98,6 +98,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | ||
98 | GrassArticle article = new GrassArticle(); | 98 | GrassArticle article = new GrassArticle(); |
99 | article.setAuthorUid(req.getAuthorUid()); | 99 | article.setAuthorUid(req.getAuthorUid()); |
100 | article.setCreateTime(now); | 100 | article.setCreateTime(now); |
101 | + article.setAuthStatus(1); | ||
102 | + article.setAuthTime(System.currentTimeMillis()); | ||
101 | try{ | 103 | try{ |
102 | grassArticleDao.insertArticleSeletive(article); | 104 | grassArticleDao.insertArticleSeletive(article); |
103 | logger.info("insert grass article success, uid is {}, ariticle id is {}", article.getAuthorUid(), article.getId()); | 105 | logger.info("insert grass article success, uid is {}, ariticle id is {}", article.getAuthorUid(), article.getId()); |
-
Please register or login to post a comment