|
@@ -45,6 +45,7 @@ public interface ArticleMapper extends BaseMapperX<ArticleDO> {
|
|
|
default PageResult<ArticleDO> selectPage(AppArticlePageReqVO pageReqVO) {
|
|
|
return selectPage(pageReqVO, new LambdaQueryWrapperX<ArticleDO>()
|
|
|
.eqIfPresent(ArticleDO::getCategoryId, pageReqVO.getCategoryId())
|
|
|
+ .likeIfPresent(ArticleDO::getTitle, pageReqVO.getTitle())
|
|
|
.orderByAsc(ArticleDO::getSort));
|
|
|
}
|
|
|
|