From 2140a97f533353c075a84393871e406329275aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=A6=E9=BA=9F=20=E7=8E=8B?= Date: Thu, 25 Jun 2026 19:44:00 +0800 Subject: [PATCH] =?UTF-8?q?BugFix=20=E5=88=B0=E6=9C=9F=E5=88=86=E7=BA=A2?= =?UTF-8?q?=E7=9A=84=EF=BC=8C=E5=B7=B2=E5=AE=9E=E7=8E=B0=E5=92=8C=E4=BA=92?= =?UTF-8?q?=E5=8A=A8=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs index e5792425..a8d8b8bb 100644 --- a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs @@ -1505,6 +1505,12 @@ namespace YLErp.Modules.SwapModule { curretEod.PosiDividendSum = 0; } + if (curretEod.PosiDividendSum == 0)//这里处理一下已实现盈亏和互换价值,其他在处理分红的时候会处理 + { + curretEod.RealizedPnl += curretEod.TdCloseDividend; + curretEod.SwapPositionValue -= curretEod.TdCloseDividend; + + } curretEod.PosiProfitSum = curretEod.PosiMtmPnL + curretEod.PosiDividendSum + curretEod.PosiFeePending; if (curretEod.PosiStatus == 1) {