From 8b8eb19ddca45964b81f8e7a7dbbf7e622c464c7 Mon Sep 17 00:00:00 2001 From: gongpei Date: Thu, 23 Oct 2025 17:30:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=AE=E5=8A=A8=E7=AB=AF=E5=BE=85?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=94=B6=E7=9B=8A=E5=88=86=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/SwapModule/SwapDealService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YLErpDAL/Modules/SwapModule/SwapDealService.cs b/YLErpDAL/Modules/SwapModule/SwapDealService.cs index 3d3d0e9b..23490925 100644 --- a/YLErpDAL/Modules/SwapModule/SwapDealService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapDealService.cs @@ -913,7 +913,7 @@ namespace YLErp.Modules.SwapModule // 平仓数量/平仓前的数量*平仓对象的待实现分红收益,保留2位小数 var yest = QdpCalendarHelper.GetNonHolidayDefore(flowEvent.EventDate.AddDays(-1)); var eod = DbContext.eod_swap_position.Where(e => e.SwapTradeId == flowEvent.SwapTradeId && !e.Invalid && e.PosiQuantity > 0 && e.ValueDate == yest).FirstOrDefault(); - var dividendIn = eod.PosiProfitSum * unwindQty / eod.PosiQuantity; + var dividendIn = eod.PosiDividendSum * unwindQty / eod.PosiQuantity; flowEvent.DividendIn = Math.Round(dividendIn, 2, MidpointRounding.AwayFromZero); }