From ed7b9102d4bc2881e4d9a5c03f791e7610a0eaf5 Mon Sep 17 00:00:00 2001 From: hjhan Date: Tue, 11 Aug 2026 12:55:02 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20CalcNotionalByMode=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E8=BF=87=E6=B8=A1=E6=9C=9F=E6=B3=A8=E9=87=8A,=20=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E4=BF=9D=E7=95=99=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 回应命名评审: 确认 FundingLegs 目录无旧文件残留(5个新文件), 旧类名/命名空间零引用。CalcNotionalByMode 有意保留: - mode 5/6(保证金)待 Margin 独立入口建成后迁出 - mode 7/8(多空存续)界面已禁用, 保留为防御性兜底 待 mode 5/6 迁出后本方法可整体删除。 --- YLErpDAL/Modules/SwapModule/SwapDealService.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/YLErpDAL/Modules/SwapModule/SwapDealService.cs b/YLErpDAL/Modules/SwapModule/SwapDealService.cs index 99d25b3e..efaa7d3e 100644 --- a/YLErpDAL/Modules/SwapModule/SwapDealService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapDealService.cs @@ -906,8 +906,15 @@ namespace YLErp.Modules.SwapModule /// /// 根据计息模式计算名义本金。 - /// 融资腿(mode 1/2/9)已委托 FundingLegStrategyFactory;保证金(mode 5/6)和 - /// 半禁用的多空存续(mode 7/8)暂保留原逻辑,待 Margin 上下文接入后再迁出。 + /// + /// 现状(过渡期): + /// - 融资腿(mode 1/2/9)已委托 FundingLegStrategyFactory,走新策略体系。 + /// - 保证金(mode 5/6)暂保留——待 Margin 独立计息入口建成后迁出。 + /// - 多空存续(mode 7/8)界面已禁用,保留 case 仅为防御性兜底。 + /// - 死代码(mode 3/4)走 default。 + /// + /// 待保证金(mode 5/6)迁入 Margin 上下文后,本方法可整体删除, + /// 调用点直接走 FundingLegStrategyFactory.Get(mode)。 /// private (decimal close, decimal posi, decimal closePct) CalcNotionalByMode(swap_position position, decimal closePercent, decimal posiNotional, decimal posiLong, decimal posiShort) {