统计样式微调
This commit is contained in:
@@ -18,12 +18,25 @@ public class TransactionRecordController(
|
||||
public async Task<PagedResponse<Entity.TransactionRecord>> GetListAsync(
|
||||
[FromQuery] DateTime? lastOccurredAt = null,
|
||||
[FromQuery] long? lastId = null,
|
||||
[FromQuery] string? searchKeyword = null
|
||||
[FromQuery] string? searchKeyword = null,
|
||||
[FromQuery] string? classify = null,
|
||||
[FromQuery] int? type = null,
|
||||
[FromQuery] int? year = null,
|
||||
[FromQuery] int? month = null
|
||||
)
|
||||
{
|
||||
try
|
||||
{
|
||||
var (list, lastTime, lastIdResult) = await transactionRepository.GetPagedListAsync(lastOccurredAt, lastId, 20, searchKeyword);
|
||||
TransactionType? transactionType = type.HasValue ? (TransactionType)type.Value : null;
|
||||
var (list, lastTime, lastIdResult) = await transactionRepository.GetPagedListAsync(
|
||||
lastOccurredAt,
|
||||
lastId,
|
||||
20,
|
||||
searchKeyword,
|
||||
classify,
|
||||
transactionType,
|
||||
year,
|
||||
month);
|
||||
var total = await transactionRepository.GetTotalCountAsync();
|
||||
|
||||
return new PagedResponse<Entity.TransactionRecord>
|
||||
|
||||
Reference in New Issue
Block a user