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