1.提现记录根据时间降序

This commit is contained in:
张松
2025-01-06 14:55:55 +08:00
parent b9c18358ee
commit 7566e41c7a

View File

@@ -126,7 +126,7 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
} }
PageHelper.startPage(page, limit); PageHelper.startPage(page, limit);
List<CashOut> cashOutList = list(queryWrapper.eq(CashOut::getUserType, 1).orderByDesc(CashOut::getId)); List<CashOut> cashOutList = list(queryWrapper.eq(CashOut::getUserType, 1).orderByDesc(CashOut::getCreateAt));
if (!isApp) { if (!isApp) {
ArrayList<Long> userIdList = new ArrayList<>(); ArrayList<Long> userIdList = new ArrayList<>();
@@ -662,7 +662,7 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
queryWrapper.le(CashOut::getCreateAt, cashOut.getEndTime()); queryWrapper.le(CashOut::getCreateAt, cashOut.getEndTime());
} }
queryWrapper.orderByDesc(CashOut::getId); queryWrapper.orderByDesc(CashOut::getCreateAt);
List<CashOut> page = list(queryWrapper); List<CashOut> page = list(queryWrapper);
if (!page.isEmpty()) { if (!page.isEmpty()) {