Commit Graph

7 Commits

Author SHA1 Message Date
kkfluous
f5062cec22 fix(energy): 改进导入确认接口质量
- 移除 importConfirm 上无效的 @Transactional(best-effort 逐行导入)
- 添加 duplicateStrategy 参数校验(仅接受 skip/overwrite)
- getImportProgress 对缺失 key 返回 not_found 而非 completed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 01:03:36 +08:00
kkfluous
7b51cf282d feat(energy): 添加三步导入接口(预览/确认/进度)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 01:00:21 +08:00
kkfluous
06101aac02 fix(energy): 修复 batchGenerateByPeriod 中 energyType 错误值和 batchMatch 中使用魔法数字
- HYDROGEN 枚举值为 0 而非 1,使用 EnergyTypeEnum.HYDROGEN.getType()
- batchMatch 使用 MatchStatusEnum.UNMATCHABLE.getStatus() 替代硬编码 2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 00:56:48 +08:00
kkfluous
7486a1e6cf feat(energy): 添加批量匹配和按月批量生成账单接口
- EnergyHydrogenDetailMapper: 新增 selectUnbilledByPeriod 按时间段查询未出账明细
- HydrogenRecordService/Impl: 新增 batchMatch 批量重新匹配失败记录
- EnergyBillService/Impl: 新增 batchGenerateByPeriod 按月自动分组生成账单
- HydrogenRecordController: 新增 POST /batch-match 接口
- EnergyBillController: 新增 POST /batch-generate-by-period 接口

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 00:51:02 +08:00
kkfluous
33879942d7 feat(energy): 添加 simple-list/summary/detail-list/adjustment-list 接口
新增5个端点跨3个Controller:站点配置simple-list、账户simple-list和summary汇总统计、账单detail-list和adjustment/list调整记录列表。新增3个VO类及对应Service方法、Convert映射方法。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 00:47:47 +08:00
kkfluous
842a81d7e4 feat(energy): 添加 4 个导出 Excel 接口
为 HydrogenRecord、HydrogenDetail、EnergyBill、EnergyAccount 各添加 /export-excel 端点,创建对应 ExcelVO 类,并在 MapStruct Convert 接口中新增 convertExcelList 方法。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 00:42:13 +08:00
kkfluous
7792c5157f feat(energy): 新增 cooperation_type 和 auto_match 字段,标记旧导入接口废弃
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 00:37:09 +08:00