From aa2da0e38ca8e88b79bab38909bfd74a193f8dc9 Mon Sep 17 00:00:00 2001 From: hjhan Date: Fri, 13 Feb 2026 15:57:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(swap):=20=E6=81=A2=E5=A4=8D=E6=9C=89?= =?UTF-8?q?=E5=B9=B3=E4=BB=93=E6=97=B6=E5=80=99=E7=9A=84=20=E8=AE=A1?= =?UTF-8?q?=E6=81=AF=E5=9F=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将posiNotionalValue的计算从posiLongNotional + posiShortNational更改为oriPosiNotionalValue - 确保头寸计算包含closeNational的数值 - 修正了影响利息方向计算的数量值计算逻辑 --- YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs index a8eb3b68..5a32fc60 100644 --- a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs @@ -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)) {