|
@@ -44,7 +44,8 @@ public interface ArticleMapper extends BaseMapperX<ArticleDO> {
|
|
|
|
|
|
default PageResult<ArticleDO> selectPage(AppArticlePageReqVO pageReqVO) {
|
|
|
return selectPage(pageReqVO, new LambdaQueryWrapperX<ArticleDO>()
|
|
|
- .eqIfPresent(ArticleDO::getCategoryId, pageReqVO.getCategoryId()));
|
|
|
+ .eqIfPresent(ArticleDO::getCategoryId, pageReqVO.getCategoryId())
|
|
|
+ .orderByAsc(ArticleDO::getSort));
|
|
|
}
|
|
|
|
|
|
default void updateBrowseCount(Long id) {
|