fix(swap): 恢复有平仓时候的 计息基数

- 将posiNotionalValue的计算从posiLongNotional + posiShortNational更改为oriPosiNotionalValue
- 确保头寸计算包含closeNational的数值
- 修正了影响利息方向计算的数量值计算逻辑
This commit is contained in:
hjhan
2026-02-13 15:57:57 +08:00
parent 5ba3618bca
commit aa2da0e38c
@@ -787,7 +787,7 @@ namespace YLErp.Modules.SwapModule
Log.Info($"eodPayPosition is {JsonHelper.Serialize(eodPayPosition, false)},newEodPayPosition is {JsonHelper.Serialize(newEodPayPosition, false)}");
var tradeExtend = td.trade_extend.ExtendObj;
decimal oriPosiNotionalValue = posiLongNotional + posiShortNational + closeNational;
decimal posiNotionalValue = posiLongNotional + posiShortNational;
decimal posiNotionalValue = oriPosiNotionalValue;
decimal ratio = position.InterestDirection == (int)SwapDirectionEnum. ? 1m : -1m;//收取为正,支付为负
if (marginTypes.Contains(position.InterestMode))
{