添加动态目标
All checks were successful
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
Docker Build & Deploy / Build Docker Image (push) Successful in 22s
Docker Build & Deploy / Deploy to Production (push) Successful in 10s
All checks were successful
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
Docker Build & Deploy / Build Docker Image (push) Successful in 22s
Docker Build & Deploy / Deploy to Production (push) Successful in 10s
This commit is contained in:
@@ -5,6 +5,8 @@ public interface IBudgetArchiveRepository : IBaseRepository<BudgetArchive>
|
||||
Task<BudgetArchive?> GetArchiveAsync(int year, int month);
|
||||
|
||||
Task<List<BudgetArchive>> GetListAsync(int year, int month);
|
||||
|
||||
Task<List<BudgetArchive>> GetArchivesByYearAsync(int year);
|
||||
}
|
||||
|
||||
public class BudgetArchiveRepository(
|
||||
@@ -25,4 +27,12 @@ public class BudgetArchiveRepository(
|
||||
.Where(a => a.Year == year && a.Month == month)
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<List<BudgetArchive>> GetArchivesByYearAsync(int year)
|
||||
{
|
||||
return await FreeSql.Select<BudgetArchive>()
|
||||
.Where(a => a.Year == year)
|
||||
.OrderBy(a => a.Month)
|
||||
.ToListAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user