refactor(swap-eod): 利息腿分派可读性收口——观察日命名统一+命名参数+查找助手+分派规格纯函数(零行为变更)
- insterval/autoInterval → observationInterval,SwapIntervalList→FindObservationInterval→形参 interval 全链同名 - :512/:525 调用点命名参数 autoSwap: true/false,签名未动 - 抽取 FindObservationInterval 消除两处重复观察日谓词(表达式逐字保留,null 语义不变) - 新增 InterestEodScenario 枚举 + ResolveInterestScenario 影子纯函数 + 8 组合表驱动 InterestEodScenarioDispatchTest(分派结构未接线,生产执行路径不变) - 编译 0 错误;表驱动 8/8 通过
This commit is contained in:
@@ -447,7 +447,7 @@ namespace YLErp.Modules.SwapModule
|
||||
/// <summary>
|
||||
/// [DI_BRANCH_001] 普通日(无互换无平仓无观察日)→ 走 copy 分支
|
||||
/// ---------------------------------------------------------------
|
||||
/// flowEvents 为空,insterval=null,hasSwap=false,hasClose=false
|
||||
/// flowEvents 为空,observationInterval=null,hasSwap=false,hasClose=false
|
||||
/// → 应走 SaveEodInterestPositionCopy(cs:338)
|
||||
/// ---------------------------------------------------------------
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user