修改查询语句

This commit is contained in:
禾几海
2020-05-23 13:27:30 +08:00
parent bc20173084
commit 9b6293fbeb
5 changed files with 225 additions and 50 deletions

View File

@@ -21,10 +21,13 @@ 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();
@@ -33,7 +36,7 @@ public interface ArticleMapper {
boolean existsByTitle(String title);
boolean existsById(long id);
boolean isDeletedById(long id);
List<Article> findAllByAuthorId(long authorID);
@@ -51,8 +54,11 @@ public interface ArticleMapper {
List<Article> getSimpleInfoByTag(List<String> idList);
@Deprecated
int setReadingNumber(long number, long id);
int updateReadingNumber(long id);
long count();
}