瀏覽代碼

文章排序

Yangzw 1 月之前
父節點
當前提交
e0b7991277

+ 1 - 1
feifan-module-mall/feifan-module-promotion-biz/src/main/java/cn/newfeifan/mall/module/promotion/dal/mysql/article/ArticleMapper.java

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