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) {