refactor(swap): 合并多空名义本金参数为单一 posiTotalNotional 并加固测试
- DealInterests 的 posiLongNotionalValue + posiShortNotionalValue 合并为 posiTotalNotional(调用点以 posiLongNotional+posiShortNotional 求和传入),净减一个参数 - SwapDealService / SwapEodPositionService / InterestCalcRequest 同步收敛多空死管道参数 - 19 个测试调用点适配新签名 - SwapEodPositionServiceIntegrationTest 参数计数断言由裸数字改为参数名集合断言(CollectionAssert.AreEquivalent,对增删/重排/改名敏感)
This commit is contained in:
@@ -209,7 +209,7 @@ namespace YLErp.Modules.SwapModule
|
||||
CloseDate, CloseDate, // valueDate / unwindDate
|
||||
new List<eod_swap_position>(), // eodPositions(空)
|
||||
new List<swap_position> { position },
|
||||
Notional, Notional, Notional, Notional, // posiNotional / long / short / closePosiNotional
|
||||
Notional, Notional, // posiNotional / closePosiNotional
|
||||
1m, // closePercent
|
||||
(int)SwapEventTypeEnum.平仓,
|
||||
false, Notional, // tdClose / orginPv
|
||||
|
||||
Reference in New Issue
Block a user