Selaa lähdekoodia

Merge branch 'dev/2024/1101/update-app-Y' of feifan/mall-backend-app into master

Yangzw 1 kuukausi sitten
vanhempi
commit
647998f90a

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

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