From 1f3fb9240bd2c28f585f126656a4c028fcaa2b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8D=E9=94=90?= <1565842059@qq.com> Date: Fri, 28 Aug 2026 14:36:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(trade):=20=E4=BF=AE=E6=AD=A3=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E7=A1=AE=E8=AE=A4=E4=B9=A6=E4=B8=AD=E7=9A=84=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E8=B4=B9=E7=8E=87=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉原有的基本费率计算公式 - 直接使用PosiTradingFeeUnit字段获取基础费率 - 避免通过PosiTradingFeePending除以名义本金的方式计算 - 确保基本费率显示的准确性 --- .../DocumentGenerator/TradeConfirmationGenerator.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Plugins/YLErp.Plugins.GuoLian/DocumentGenerator/TradeConfirmationGenerator.cs b/Plugins/YLErp.Plugins.GuoLian/DocumentGenerator/TradeConfirmationGenerator.cs index e626cb4b..7cf45a24 100644 --- a/Plugins/YLErp.Plugins.GuoLian/DocumentGenerator/TradeConfirmationGenerator.cs +++ b/Plugins/YLErp.Plugins.GuoLian/DocumentGenerator/TradeConfirmationGenerator.cs @@ -559,9 +559,11 @@ namespace YLErp.Plugins.GuoLian.DocumentGenerator } // 基本费率 = PosiTradingFeePending / 名义本金 * 100 - var tradingFee = (double)swapPosition.PosiTradingFeePending; - var basicFeeRate = notional == 0 ? 0 : tradingFee / notional * 100; - dic["基本费率"] = basicFeeRate.ToString("0.####"); + // var tradingFee = (double)swapPosition.PosiTradingFeePending; + // var basicFeeRate = notional == 0 ? 0 : tradingFee / notional * 100; + // dic["基本费率"] = basicFeeRate.ToString("0.####"); + // @张名锐: 直接取值PosiTradingFeeUnit(基础费率) + dic["基本费率"] = swapPosition.PosiTradingFeeUnit.ToString("0.####"); } else {