瀏覽代碼

编辑文章接口优化

fangqing 4 月之前
父節點
當前提交
ada079e419

+ 1 - 0
ruoyi-generator/src/main/java/com/ruoyi/generator/service/CommunityArticleServiceImpl.java

@@ -615,6 +615,7 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
                     null,
                     new UpdateWrapper<CommunityCollectionArticle>()
                             .eq("article_id", communityArticle.getId())
+                            .eq("create_by",userId)
                             .set("is_delete", true)
                             .and((wrapper) -> {
                                 wrapper.ne("is_delete", 1).or().isNull("is_delete");