dao层修改 单元测试

This commit is contained in:
禾几海
2020-05-24 22:00:06 +08:00
parent 732bbe4444
commit 87de48b5a0
7 changed files with 257 additions and 41 deletions

View File

@@ -21,15 +21,6 @@ public interface ArticleMapper {
int update(Article a);
@Deprecated
int updateNextArticleId(long targetArticleID, long nextArticleID);
@Deprecated
int updatePreArticleId(long targetArticleID, long preArticleID);
@Deprecated
long getLastestArticleId();
Article getLastestArticle();
Article findArticleById(long id);
@@ -38,7 +29,7 @@ public interface ArticleMapper {
boolean isDeletedById(long id);
List<Article> findAllByAuthorId(long authorID);
List<Article> findAllByAuthorId(long authorId);
List<Article> findAllByOpen(boolean isOpen);
@@ -48,15 +39,6 @@ public interface ArticleMapper {
List<Article> findAll();
Article getSimpleInfo(long id);
List<Article> getSimpleInfoByCategory(long categoryId);
List<Article> getSimpleInfoByTag(List<String> idList);
@Deprecated
int setReadingNumber(long number, long id);
int updateReadingNumber(long id);
long count();