...
|
...
|
@@ -669,8 +669,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
Integer authStatus = req.getAuthStatus();
|
|
|
Integer articleId = req.getArticleId();
|
|
|
//后期增加--文章有可能被删除,校验下
|
|
|
GrassArticle oldGrassArticle = grassArticleDao.selectByPrimaryKey(articleId);
|
|
|
if(oldGrassArticle == null || oldGrassArticle.getAuthStatus() == 3){
|
|
|
// GrassArticle oldGrassArticle = grassArticleDao.selectByPrimaryKey(articleId);
|
|
|
if(articleInfo == null || articleInfo.getAuthStatus() == 3){
|
|
|
throw new PlatformException("article has been deleted",405);
|
|
|
}
|
|
|
GrassArticle grassArticle = new GrassArticle();
|
...
|
...
|
@@ -683,6 +683,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
grassArticle.setRecommendTime(0L);
|
|
|
grassArticle.setTopTime(0L);
|
|
|
}
|
|
|
req.setPublishTime(articleInfo.getCreateTime()+"");
|
|
|
|
|
|
grassArticle.setAuthorizeAccount(req.getAuthorizeAccount());
|
|
|
grassArticle.setAuthTime(System.currentTimeMillis());
|
|
|
grassArticleDao.updateByPrimaryKeySelective(grassArticle);
|
...
|
...
|
|