|
@@ -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)) {
|