feat(export): 导出文章列表支持按发布时间倒序排序

- 在查询条件中新增按发布时间倒序排序逻辑- 默认展示最新发布的文章在前
This commit is contained in:
2025-11-14 14:38:19 +08:00
parent 61b7654b3d
commit 43d66a1924

View File

@@ -70,6 +70,8 @@ public class ExportArticleServiceImpl implements IExportArticleService {
lqw.eq(bo.getIsPublished() != null, ExportArticle::getIsPublished, bo.getIsPublished());
lqw.eq(bo.getPublishedTime() != null, ExportArticle::getPublishedTime, bo.getPublishedTime());
lqw.eq(bo.getSortOrder() != null, ExportArticle::getSortOrder, bo.getSortOrder());
// 新增:按发布时间倒序排序(晚的在前)
lqw.orderByDesc(ExportArticle::getPublishedTime);
return lqw;
}