diff --git a/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java b/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java index cd48412..c0e01d0 100644 --- a/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java +++ b/cloud-common-article/src/main/java/com/cm/common/article/controller/app/apis/articlecontent/ArticleContentAppController.java @@ -89,6 +89,7 @@ public class ArticleContentAppController extends AbstractController { @GetMapping("listarticlecontent") public List listArticleContent(@RequestHeader("token") String token) throws SearchException { Map params = requestParams(); + params.put("isPublish", 1); return articleContentService.listArticleContent(params); } @@ -106,6 +107,7 @@ public class ArticleContentAppController extends AbstractController { @GetMapping("listpagearticlecontent") public SuccessResultList> listPageArticleContent(@RequestHeader("token") String token, ListPage page) throws SearchException { Map params = requestParams(); + params.put("isPublish", 1); page.setParams(params); return articleContentService.listPageArticleContent(page); } @@ -119,6 +121,7 @@ public class ArticleContentAppController extends AbstractController { @GetMapping("countarticlecount") public SuccessResultData countArticleCount() { Map params = requestParams(); + params.put("isPublish", 1); return articleContentService.countArticleCount(params); }