From 421662a07c7c38cebd33a0bd08e381805b651d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8D=E9=94=90?= <1565842059@qq.com> Date: Sun, 9 Aug 2026 14:10:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(swaptrade):=20=E6=B8=85=E7=A9=BA=E7=BB=AD?= =?UTF-8?q?=E4=BD=9C=E6=8C=81=E4=BB=93=E7=9A=84=E6=B5=AE=E5=8A=A8=E5=88=A9?= =?UTF-8?q?=E7=8E=87=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在续作处理中添加了对 FloatRate 字段的清零操作 - 确保续作持仓的累计字段被正确重置 - 避免历史浮动利率数据影响新的交易计算 --- YLErpWeb/Controllers/SwapTrade2Controller.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/YLErpWeb/Controllers/SwapTrade2Controller.cs b/YLErpWeb/Controllers/SwapTrade2Controller.cs index 3d84af2d..1c409542 100644 --- a/YLErpWeb/Controllers/SwapTrade2Controller.cs +++ b/YLErpWeb/Controllers/SwapTrade2Controller.cs @@ -202,6 +202,7 @@ namespace YLErp.Web.Controllers // 清空运行时累计字段(这些字段在源交易存续期间可能被累计) renewPosition.InterestAmount = 0; renewPosition.InterestFeePending = 0; + renewPosition.FloatRate = 0; renewPosition.PosiDividendIncome = 0; renewPosition.InterestSwapInterval = null; renewPosition.Obervation = null;