feat: 添加利息趋势图

This commit is contained in:
橙子
2024-03-16 17:57:17 +08:00
parent 822febba2e
commit 534b03ef5c
5 changed files with 34 additions and 15 deletions

View File

@@ -30,7 +30,7 @@ namespace Yi.Framework.Bbs.Application.Services.Bank
[HttpGet("bank/interest")]
public async Task<List<InterestRecordsDto>> GetInterestRecordsAsync()
{
var entities = await _interestRepository._DbQueryable.OrderByDescending(x => x.CreationTime).ToPageListAsync(1, 24);
var entities = await _interestRepository._DbQueryable.OrderBy(x => x.CreationTime).ToPageListAsync(1, 24);
var output = entities.Adapt<List<InterestRecordsDto>>();
return output;
}