From b64e30a83d00f4a06af51e4ebef9a6a6ef9a4b97 Mon Sep 17 00:00:00 2001 From: gongpei Date: Tue, 4 Nov 2025 15:16:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E6=88=90=E4=BA=A4=E6=94=B6=E7=9B=8A=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/SwapModule/SwapTradeService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs index 962cec7a..62250b7c 100644 --- a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs @@ -1382,6 +1382,11 @@ namespace YLErp.Modules.SwapModule position.interest_rest_days = swap.interest_rest_days; position.interest_rule = swap.interest_rule; position.InitYtm = swap.InitYtm; + if (swap.InitYtm != null && swap.InitYtm > 0) + { + td.InitYtm = swap.InitYtm; + } + if (position.id == 0) { DbContext.swap_position.Add(position);