hjhan
01447ffe04
refactor(swap): GetInterests 传参语义显式化——盘中/EOD平仓后收盘拆双显式入口
问题:GetInterests 同名参数在两类调用方下语义相反,约定只存在于注释(2035e1df 固化):
盘中(:489链) EOD平仓后收盘(:1311链)
posiNotionalValue 平仓前剩余本金 vs 平仓后剩余本金
closePercent 实际平仓比例(B) vs 恒1(全额结息)
均走 settment:false 盘中重放算法。6fdc7d80 修的错账即两语义混用产物,
mode2 无条件覆盖/mode9 全平兜底是粘合补丁。
改动(纯机械,零行为变化):
- SwapDealService 新增 GetIntradayUnwindInterests(preCloseNotional/closedNotional/
closePercentRemaining 具名),GetUnwindInterests 切换调用;needPrice/grossPrice 为
GetInterests 死参数(体内零消费),新入口不再暴露
- SwapEodPositionService 新增虚接缝 CalcEodPostCloseSettleInterests
(remainingNotionalAfterClose/closedNotional/恒1),默认实现经 CalcSwapInterests
转发——既有测试替身对该接缝的拦截不变;SaveAutoEodWithCloseInterestPosition 切换调用
- 原 GetInterests/CalcSwapInterests 签名与行为不动(测试直调兼容);EOD 增量路径
(:1148/:1563, settment:true, closePosi=posi 同值) 语义自洽,本次不动
验证:全量 899 测试 145失败/742通过/12跳过——与 e2431e9d 基线逐位一致,零回归。
2026-08-14 15:39:44 +08:00
..
2026-08-14 15:31:04 +08:00
2026-08-12 15:24:15 +08:00
2025-08-29 14:43:24 +08:00
2026-08-14 15:14:09 +08:00
2026-08-14 08:55:37 +08:00
2026-08-12 15:03:00 +08:00
2026-08-14 15:31:04 +08:00
2026-08-12 17:31:39 +08:00
2026-08-12 16:46:13 +08:00
2024-05-09 14:06:26 +08:00
2026-08-10 18:01:37 +08:00
2025-09-11 14:18:51 +08:00
2026-08-14 15:31:04 +08:00
2024-05-09 14:06:26 +08:00
2026-07-23 11:06:50 +08:00
2026-08-11 09:23:01 +08:00
2026-08-14 15:39:44 +08:00
2026-07-03 08:22:27 +08:00
2026-08-14 15:39:44 +08:00
2026-08-11 09:40:48 +08:00
2026-08-06 17:45:43 +08:00
2025-04-14 16:31:35 +08:00
2026-07-29 14:42:03 +08:00
2026-07-23 11:06:50 +08:00
2026-08-07 19:44:01 +08:00
2026-07-21 15:28:14 +08:00
2026-07-22 16:51:40 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-01-26 17:35:56 +08:00
2026-07-23 11:06:50 +08:00
2026-08-12 09:45:19 +08:00
2026-08-11 19:23:21 +08:00
2024-05-09 14:06:26 +08:00
2026-08-12 16:26:12 +08:00
2024-05-09 14:06:26 +08:00
2024-06-04 18:19:49 +08:00
2026-08-12 16:26:12 +08:00