多个样式调整
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 21s
Docker Build & Deploy / Deploy to Production (push) Successful in 8s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s

This commit is contained in:
2026-01-11 16:33:55 +08:00
parent 49023237e7
commit ec460376c6
4 changed files with 300 additions and 80 deletions

View File

@@ -96,7 +96,11 @@ public class BudgetService(
if (archive != null) // 存在归档 直接读取归档数据
{
budget.Limit = archive.BudgetedAmount;
return BudgetResult.FromEntity(budget, archive.RealizedAmount, referenceDate);
return BudgetResult.FromEntity(
budget,
archive.RealizedAmount,
referenceDate,
archive.Description ?? string.Empty);
}
}
@@ -271,6 +275,7 @@ public class BudgetService(
{
archive.RealizedAmount = budget.Current;
archive.ArchiveDate = DateTime.Now;
archive.Description = budget.Description;
updateArchives.Add(archive);
}
else
@@ -283,6 +288,7 @@ public class BudgetService(
Month = month,
BudgetedAmount = budget.Limit,
RealizedAmount = budget.Current,
Description = budget.Description,
ArchiveDate = DateTime.Now
};