From 1d954621c1deb44f31ffbdf3f0ba237fcb09ad88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8D=E9=94=90?= <1565842059@qq.com> Date: Mon, 10 Aug 2026 10:32:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(bond):=20=E4=BF=AE=E5=A4=8D=E5=80=BA?= =?UTF-8?q?=E5=88=B8=E8=AE=A1=E7=AE=97=E4=B8=AD=E7=9A=84=E4=BB=B7=E6=A0=BC?= =?UTF-8?q?=E5=80=8D=E6=95=B0=E5=BA=94=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在BondCalcHelper调用中添加了bondShowPriceMultiple倍数转换 - 确保deal_full_price_avg在传递给债券计算器之前进行正确的价格倍数调整 - 保持原有的空值检查逻辑以确保计算安全性 --- YLErpDAL/BLL/EodSettlement/RealtimePnlCalc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YLErpDAL/BLL/EodSettlement/RealtimePnlCalc.cs b/YLErpDAL/BLL/EodSettlement/RealtimePnlCalc.cs index 54e9a178..d8347cbc 100644 --- a/YLErpDAL/BLL/EodSettlement/RealtimePnlCalc.cs +++ b/YLErpDAL/BLL/EodSettlement/RealtimePnlCalc.cs @@ -745,7 +745,7 @@ namespace YLErp.BLL.Eod #region 新互换实时持仓私有方法 private static void BondCalcApi(ClientPosition clientPosition) { - var resp = BondCalcHepler.BondCalc(clientPosition.security_id, clientPosition.deal_full_price_avg ?? 0, "DP"); + var resp = BondCalcHepler.BondCalc(clientPosition.security_id, clientPosition.deal_full_price_avg * ConsGlobal.bondShowPriceMultiple ?? 0, "DP"); if (resp != null) { clientPosition.deal_yield_avg = resp.ytm * ConsGlobal.bondPriceMultiple;