From 1c9b28ff0df024d9f39b9fcbf4ada533155a2563 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 20:34:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=92=E6=8D=A2=E5=AE=A1=E6=A0=B8=E6=97=B6?= =?UTF-8?q?=E5=AF=B9=E6=8C=81=E4=BB=93sotckeqvnotional=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/SwapModule/SwapDealService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/YLErpDAL/Modules/SwapModule/SwapDealService.cs b/YLErpDAL/Modules/SwapModule/SwapDealService.cs index 10a1af7d..d6410ebd 100644 --- a/YLErpDAL/Modules/SwapModule/SwapDealService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapDealService.cs @@ -1536,8 +1536,12 @@ namespace YLErp.Modules.SwapModule td.HasPartialUnWind = 1; } td.UnWindDate = swapEvent.unwindData.UnwindDate; - td.StockEqvNotional -= Convert.ToDouble(swapEvent.unwindData.CloseNotionalValue); - td.TradeAmount -= Convert.ToDouble(swapEvent.unwindData.CloseQty); + if (eventType != (int)SwapEventTypeEnum.互换) + { + td.StockEqvNotional -= Convert.ToDouble(swapEvent.unwindData.CloseNotionalValue); + td.TradeAmount -= Convert.ToDouble(swapEvent.unwindData.CloseQty); + } + td.Notional = td.TradeAmount; UpdateInitalPosition(flowList, swapEvent.unwindData, eventType); DbContext.SaveChanges();