From 117ea3e1d2c32c7597f6a5407251261915f180a8 Mon Sep 17 00:00:00 2001 From: hjhan Date: Thu, 27 Aug 2026 18:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=20SwapEodPositionService.Get?= =?UTF-8?q?AutoSwapCashRebate=20=E5=86=97=E4=BD=99=20Convert.ToDecimal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CreditRebate 已随资金标签链路改为 decimal,Convert.ToDecimal(decimal) 恒等转换,直接去掉。 --- 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 a7a57a1b..2ce8322a 100644 --- a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs @@ -1731,7 +1731,7 @@ namespace YLErp.Modules.SwapModule settlements[i].RebateAmount = legs[i].InterestClosePnL * -DirectionRatio.ReceivePay(legs[i].InterestDirection); } var split = FundTagCalc.SplitUnwindByTag(settlements); - return Math.Round(totalRebate - Convert.ToDecimal(split.CreditRebate), 2, MidpointRounding.AwayFromZero); + return Math.Round(totalRebate - split.CreditRebate, 2, MidpointRounding.AwayFromZero); } /// /// 互换更新实时持仓信息