perf(novel-crawl): 优化爬虫源列表排序

按照更新时间倒序
This commit is contained in:
xiongxiaoyang
2025-07-15 18:53:31 +08:00
parent 720711414c
commit 3d41cf3ebb

View File

@ -100,7 +100,7 @@ public class CrawlServiceImpl implements CrawlService {
PageHelper.startPage(page, pageSize);
SelectStatementProvider render = select(id, sourceName, sourceStatus, createTime, updateTime)
.from(crawlSource)
.orderBy(updateTime)
.orderBy(updateTime.descending())
.build()
.render(RenderingStrategies.MYBATIS3);
List<CrawlSource> crawlSources = crawlSourceMapper.selectMany(render);