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();