release: lottery根据发布时间排序

release-2024-04-25
huangyw 1 month ago
parent f1da3b4cb0
commit deef419f40

@ -494,7 +494,7 @@ public class LotteryService {
qLottery.publishTime qLottery.publishTime
)).from(qLottery) )).from(qLottery)
.where(booleanBuilder) .where(booleanBuilder)
.orderBy(qLottery.createTime.desc()) .orderBy(qLottery.publishTime.desc())
.offset(pageable.getOffset()) .offset(pageable.getOffset())
.limit(pageable.getPageSize()) .limit(pageable.getPageSize())
.fetch(); .fetch();

Loading…
Cancel
Save