...
|
...
|
@@ -52,6 +52,7 @@ public class PublicArticleService { |
|
|
// select id from public_article where relate_id=#{grass_article.article_id} and article_type in (1,2,4)
|
|
|
PublicArticle existObject = validateInfoAndGetRecord(targetObject);
|
|
|
boolean mark = true;
|
|
|
PublicArticle saveObject;
|
|
|
if (existObject != null) {
|
|
|
mark = false;
|
|
|
targetObject.setCoverImg((String) checkResult);
|
...
|
...
|
@@ -68,8 +69,10 @@ public class PublicArticleService { |
|
|
* 2. 审核人未变更,但审核状态变更,更新数据
|
|
|
*/
|
|
|
publicArticleAuditHandler(publicArticleAudit, existObject);
|
|
|
saveObject = publicArticleRepository.save(existObject);
|
|
|
} else {
|
|
|
saveObject = publicArticleRepository.save(targetObject);
|
|
|
}
|
|
|
final PublicArticle saveObject = publicArticleRepository.save(existObject);
|
|
|
if (mark) {
|
|
|
// public_article_audit 表新增记录
|
|
|
publicArticleAudit.setArticleId(saveObject.getId());
|
...
|
...
|
|