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
..
2024-05-09 14:06:26 +08:00
2026-08-11 09:57:20 +08:00
2025-09-02 18:01:22 +08:00
2026-03-11 15:04:10 +08:00
2024-05-09 14:06:26 +08:00
2026-05-22 14:02:23 +08:00
2026-08-13 17:21:04 +08:00
2026-08-07 17:44:04 +08:00
2026-08-14 15:14:09 +08:00
2025-07-25 13:40:56 +08:00
2025-04-22 09:45:21 +08:00
2026-08-14 15:39:44 +08:00
2024-05-09 14:06:26 +08:00
2026-05-08 15:09:58 +08:00
2026-03-20 14:07:43 +08:00
2026-03-13 16:06:33 +08:00
2025-09-09 13:07:21 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-07-31 11:02:49 +08:00