修改查询语句
This commit is contained in:
@@ -3,6 +3,7 @@ package cn.celess.blog.entity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author : xiaohai
|
||||
@@ -41,14 +42,19 @@ public class Article {
|
||||
|
||||
private Date updateDate = null;
|
||||
|
||||
@Deprecated
|
||||
private Long categoryId;
|
||||
|
||||
@Deprecated
|
||||
private String tagsId;
|
||||
|
||||
@Deprecated
|
||||
private Long authorId;
|
||||
|
||||
@Deprecated
|
||||
private Long preArticleId;
|
||||
|
||||
@Deprecated
|
||||
private Long nextArticleId;
|
||||
|
||||
private Long readingNumber;
|
||||
@@ -58,4 +64,13 @@ public class Article {
|
||||
*/
|
||||
private Boolean open;
|
||||
|
||||
private Category category;
|
||||
|
||||
private List<Tag> tags;
|
||||
|
||||
private Integer likeCount;
|
||||
|
||||
private Integer dislikeCount;
|
||||
|
||||
private User user;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user