From 19f8d9a8deef402580b8c0ba3cfaa2cd93b2bd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=B9=E6=B5=B7?= Date: Tue, 2 Jun 2026 14:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E6=97=A5=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E9=83=A8=E5=88=86=E5=B9=B3=E4=BB=93=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/SwapModule/SwapDealService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/YLErpDAL/Modules/SwapModule/SwapDealService.cs b/YLErpDAL/Modules/SwapModule/SwapDealService.cs index 63b37584..3fd21bf8 100644 --- a/YLErpDAL/Modules/SwapModule/SwapDealService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapDealService.cs @@ -414,7 +414,9 @@ namespace YLErp.Modules.SwapModule } } //当日有平仓或互换记录时,需要把平仓或互换已经结算的利息从计算结果中扣除,避免重复计算 - if (closeList != null && closeList.Count > 0) + //互换始终需要扣除;平仓仅不算尾时需要(算尾时利息已包含关闭日,无重叠) + if (closeList != null && closeList.Count > 0 + && (eventType == (int)SwapEventTypeEnum.自动互换 || (!calcLast && !newCalcLast))) { foreach (var item in interests) {