|
@@ -29,7 +29,7 @@ public interface ArticleMapper extends BaseMapperX<ArticleDO> {
|
|
.eqIfPresent(ArticleDO::getRecommendHot, reqVO.getRecommendHot())
|
|
.eqIfPresent(ArticleDO::getRecommendHot, reqVO.getRecommendHot())
|
|
.eqIfPresent(ArticleDO::getRecommendBanner, reqVO.getRecommendBanner())
|
|
.eqIfPresent(ArticleDO::getRecommendBanner, reqVO.getRecommendBanner())
|
|
.betweenIfPresent(ArticleDO::getCreateTime, reqVO.getCreateTime())
|
|
.betweenIfPresent(ArticleDO::getCreateTime, reqVO.getCreateTime())
|
|
- .orderByDesc(ArticleDO::getId));
|
|
|
|
|
|
+ .orderByAsc(ArticleDO::getSort));
|
|
}
|
|
}
|
|
|
|
|
|
default List<ArticleDO> selectList(Boolean recommendHot, Boolean recommendBanner) {
|
|
default List<ArticleDO> selectList(Boolean recommendHot, Boolean recommendBanner) {
|