Skip to content

Commit

Permalink
bug: 修复公开笔记bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hansanshi committed Dec 27, 2020
1 parent e5ff8bf commit 100e438
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>ink.markidea</groupId>
<artifactId>note</artifactId>
<version>0.4</version>
<version>0.4.1</version>
<name>note</name>
<description>MarkIdea, a note-taking software</description>

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/ink/markidea/note/dao/ArticleRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public interface ArticleRepository extends JpaRepository<ArticleDo, Integer> {

ArticleDo findByIdAndUsername(Integer id, String username);

ArticleDo findByArticleTitleAndUsername(String articleTitle, String username);

ArticleDo findFirstByNotebookNameAndNoteTitleAndUsername(String notebookName, String noteTitle, String username);

List<ArticleDo> findAllByUsername(String username);
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/ink/markidea/note/service/IArticleService.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public interface IArticleService {

ArticleDo findByNotebookAndNoteTitle(String notebookName, String noteTitle);

ArticleVo findByArticleTileAndUsername(String articleTitle, String username);

ArticleVo findByArticleIdAndUsername(Integer articleId, String username);

Page<ArticleVo> listArticles(Integer page, Integer size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ public ArticleDo findByNotebookAndNoteTitle(String notebookName, String noteTitl
return articleRepository.findFirstByNotebookNameAndNoteTitleAndUsername(notebookName, noteTitle, getUsername());
}


@Override
public ArticleVo findByArticleTileAndUsername(String articleTitle, String username) {
return convert(articleRepository.findByArticleTitleAndUsername(articleTitle, username));
}

@Override
public ArticleVo findByArticleIdAndUsername(Integer articleId, String username) {
return convert(articleRepository.findByIdAndUsername(articleId, username));
Expand Down

0 comments on commit 100e438

Please sign in to comment.