From fb9cf9eadd16eda40315cb0f5dfba20c743ffbc4 Mon Sep 17 00:00:00 2001 From: hjhan Date: Thu, 20 Aug 2026 17:41:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20EQD-6953=20BondController=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=99=A8=E8=B0=83=E7=94=A8=E8=A1=A5source=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=97=A5=E5=BF=97=E2=80=94=E2=80=94=E5=B9=B3=E4=BB=93?= =?UTF-8?q?=E9=A1=B5=E8=AF=B7=E6=B1=82=E5=B8=A6source=3Dunwind(=E5=8F=AF?= =?UTF-8?q?=E9=80=89=E5=8F=82=E6=95=B0=E5=90=91=E5=90=8E=E5=85=BC=E5=AE=B9?= =?UTF-8?q?,=E5=BD=95=E5=85=A5=E9=A1=B5=E4=B8=8D=E4=BC=A0)=EF=BC=9BBondCal?= =?UTF-8?q?cHepler=E6=9C=AC=E5=B0=B1=E8=AE=B0=E5=BD=95=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E5=8F=82=E6=95=B0/=E7=BB=93=E6=9E=9C/=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0,=E8=A1=A5=E5=9C=BA=E6=99=AF=E7=BB=B4?= =?UTF-8?q?=E5=BA=A6=E5=8D=B3=E5=8F=AF=E5=8C=BA=E5=88=86=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E6=98=AF=E5=8F=82=E6=95=B0=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E5=88=AB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Controllers/BondController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/YLErpWeb/Controllers/BondController.cs b/YLErpWeb/Controllers/BondController.cs index 36ef4f85..9a367b76 100644 --- a/YLErpWeb/Controllers/BondController.cs +++ b/YLErpWeb/Controllers/BondController.cs @@ -7,8 +7,12 @@ namespace YLErp.Web.Controllers { [AllowAnonymous] - public JsonResult CalcBond(string underlyingCode, decimal price, string priceType, string targetDate = null) + public JsonResult CalcBond(string underlyingCode, decimal price, string priceType, string targetDate = null, string source = null) { + // EQD-6953:source 标记调用场景(unwind=平仓页;录入页不传)。BondCalcHepler 已记录 + // 完整请求参数与成败结果,此处仅补场景维度,定位问题时先按 source 区分入口再看参数。 + LogFactory.GetLogger("BondController").Info( + $"CalcBond source={source ?? "(未标记)"} underlyingCode={underlyingCode} price={price} priceType={priceType} targetDate={targetDate ?? "(空→代理默认T+1)"}"); string errorMsg; var obj = BondCalcHepler.BondCalc(underlyingCode, price, priceType, out errorMsg, targetDate); if (obj == null)