From e5f3d6d11d4137717a97d6781ccea29bfb30c018 Mon Sep 17 00:00:00 2001 From: hjhan Date: Thu, 5 Feb 2026 16:01:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(swap):=20=E4=BF=AE=E5=A4=8D=E5=88=A9?= =?UTF-8?q?=E6=81=AF=E6=96=B9=E5=90=91=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 - 根据flowMerge.BsType动态设置InterestDirection - 长仓时设置为收取,短仓时设置为支付 --- YLErpDAL/Modules/SwapModule/SwapTradeService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs index 62250b7c..332873f5 100644 --- a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs @@ -391,7 +391,7 @@ namespace YLErp.Modules.SwapModule td.swap_positions.Add(floatPosition); swap_position interestPosition = new swap_position() { - InterestDirection = (int)SwapDirectionEnum.收取, + InterestDirection = flowMerge.BsType == (int)PositionTypeFlag.Long ? (int)SwapDirectionEnum.收取 : (int)SwapDirectionEnum.支付, InterestRateDefault = 0, InterestMode = (int)InterestModeEnum.标的期初全价, InterestPrincipalFix = 0,