Browse Source

帮助不区分站点

Gaosheng 2 days ago
parent
commit
39fb28a7ed

+ 1 - 1
xinkeaboard-server/b2b2c-web/src/main/java/com/slodon/b2b2c/controller/cms/admin/AdminHelpArticleController.java

@@ -54,7 +54,7 @@ public class AdminHelpArticleController {
     public JsonResult<PageVO<HelpArticleVO>> getList(HttpServletRequest request,String webSite, String title, String content) {
         PagerInfo pager = WebUtil.handlerPagerInfo(request);
         HelpArticleExample example = new HelpArticleExample();
-        example.setWebSite(webSite);
+        example.setWebSite("1");
         example.setTitleLike(title);
         example.setContentLike(content);
         List<StoreCmsArticle> list = helpArticleModel.getArticleList(example, pager);

+ 2 - 2
xinkeaboard-server/b2b2c-web/src/main/java/com/slodon/b2b2c/model/cms/HelpArticleModel.java

@@ -56,7 +56,7 @@ public class HelpArticleModel {
     public Integer saveArticle(ArticleAddDTO articleAddDTO, Admin admin) throws Exception {
         //根据文章标题查重
         HelpArticleExample articleExample = new HelpArticleExample();
-        articleExample.setWebSite(articleAddDTO.getWebSite());
+        articleExample.setWebSite("1");
         articleExample.setTitle(articleAddDTO.getTitle());
         List<StoreCmsArticle> list = helpArticleReadMapper.listByExample(articleExample);
         if (!CollectionUtils.isEmpty(list)) {
@@ -140,7 +140,7 @@ public class HelpArticleModel {
         //根据文章标题查重
         HelpArticleExample articleExample = new HelpArticleExample();
         articleExample.setArticleIdNotEquals(articleUpdateDTO.getArticleId());
-        articleExample.setWebSite(articleUpdateDTO.getWebSite());
+        articleExample.setWebSite("1");
         articleExample.setTitle(articleUpdateDTO.getTitle());
         List<StoreCmsArticle> list = helpArticleReadMapper.listByExample(articleExample);
         if (!CollectionUtils.isEmpty(list)) {