SunCheng
|
4cc205fc25
|
feat(budget): 实现存款明细计算核心逻辑
- 添加 BudgetItemCalculator 辅助类,实现明细项计算规则
- 收入:实际>0取实际,否则取预算
- 支出:取MAX(预算, 实际)
- 硬性支出未发生:按天数折算
- 归档数据:直接使用实际值
- 实现月度和年度存款核心公式
- 月度:收入预算 + 本月年度收入 - 支出预算 - 本月年度支出
- 年度:归档已实收 + 未来收入预算 - 归档已实支 - 未来支出预算
- 定义存款明细数据结构
- SavingsDetail: 包含收入/支出明细列表和汇总
- BudgetDetailItem: 预算明细项(含计算用金额、计算说明等)
- SavingsCalculationSummary: 计算汇总信息
- 新增单元测试
- BudgetItemCalculatorTest: 11个测试覆盖所有计算规则
- BudgetSavingsCalculationTest: 6个测试验证核心公式
测试结果:所有测试通过 (366 passed, 0 failed)
|
2026-02-20 16:26:04 +08:00 |
|
SunCheng
|
d052ae5197
|
fix
|
2026-02-10 17:49:19 +08:00 |
|
SunCheng
|
3ed9cf5ebd
|
重构: 将 LogCleanupService 转为 Quartz Job 服务
Docker Build & Deploy / Build Docker Image (push) Successful in 22s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
- 创建 LogCleanupJob 替代 LogCleanupService (BackgroundService)
- 在 Expand.cs 中注册 LogCleanupJob (每天凌晨2点执行, 保留30天日志)
- 从 Program.cs 移除 LogCleanupService 的 HostedService 注册
- 删除 Service/LogCleanupService.cs
- 删除 Service/PeriodicBillBackgroundService.cs (已无用的重复服务)
所有后台任务现在统一通过 Quartz.NET 管理, 支持运行时控制
|
2026-01-28 11:19:23 +08:00 |
|
SunCheng
|
b71eadd4f9
|
重构账单查询sql
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
|
2026-01-28 10:58:15 +08:00 |
|
SunCheng
|
dcbde4db23
|
fix
Docker Build & Deploy / Build Docker Image (push) Successful in 25s
Docker Build & Deploy / Deploy to Production (push) Successful in 6s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
|
2026-01-22 21:03:00 +08:00 |
|
SunCheng
|
9e14849014
|
feat: 添加预算统计服务增强和日志系统改进
Docker Build & Deploy / Build Docker Image (push) Successful in 24s
Docker Build & Deploy / Deploy to Production (push) Successful in 6s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
1. 新增 BudgetStatsService:将预算统计逻辑从 BudgetService 中提取为独立服务,支持月度和年度统计,包含归档数据支持和硬性预算调整算法
2. 日志系统增强:添加请求ID追踪功能,支持通过请求ID查询关联日志,新增类名筛选功能
3. 日志解析优化:修复类名解析逻辑,正确提取 SourceContext 中的类名信息
4. 代码清理:移除不需要的方法名相关代码,简化日志筛选逻辑
|
2026-01-22 19:07:10 +08:00 |
|
SunCheng
|
a06a75ee97
|
fix
Docker Build & Deploy / Build Docker Image (push) Successful in 23s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
|
2026-01-22 11:06:52 +08:00 |
|
SunCheng
|
937e8db776
|
fix bugs
Docker Build & Deploy / Build Docker Image (push) Successful in 28s
Docker Build & Deploy / Deploy to Production (push) Successful in 11s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
|
2026-01-21 19:51:41 +08:00 |
|
SunCheng
|
64aa24c07b
|
fix
Docker Build & Deploy / Build Docker Image (push) Successful in 22s
Docker Build & Deploy / Deploy to Production (push) Successful in 5s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
|
2026-01-21 18:52:31 +08:00 |
|
SunCheng
|
0ffeb41605
|
重构存款预算
Docker Build & Deploy / Build Docker Image (push) Failing after 44s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 3s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
|
2026-01-20 19:11:05 +08:00 |
|
SunCheng
|
44d9fbb0f6
|
todo
Docker Build & Deploy / Build Docker Image (push) Successful in 23s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
|
2026-01-19 13:39:59 +08:00 |
|