From df65cd0addeedbe99d9a35e886099055145ef0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=B9=E6=B5=B7?= Date: Mon, 3 Jun 2024 13:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=80=BA=E5=88=B8=E8=A7=84?= =?UTF-8?q?=E6=A8=A1=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/RiskModule/QuotaMonitorService.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs b/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs index b70f0c6e..b2a0651b 100644 --- a/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs +++ b/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs @@ -5618,11 +5618,11 @@ namespace YLErp.Modules.RiskModule messageList.Add(SetQuotaMsg(tag, setting.QuotaIndex, currentValue, Convert.ToDouble(tradePosiVal), posiVal, Convert.ToDouble(current.Pv), Convert.ToDouble(noPosiVal), null, upperLimit, lowerLimit, setting.Percent, warning)); break; case "轧差集中度": - if (current.Circulation == 0) - { - messageList.Add($"{tag}:{current.UnderlyingCode}发行规模数据未维护"); - break; - } + //if (current.Circulation == 0) + //{ + // messageList.Add($"{tag}:{current.UnderlyingCode}发行规模数据未维护"); + // break; + //} currentValue = current.Circulation == 0 ? 0 : currentValue / Convert.ToDouble(current.Circulation); tradePosiVal = current.Circulation == 0 ? 0 : tradePosiVal / current.Circulation; posiVal = current.Circulation == 0 ? 0 : posiVal / Convert.ToDouble(current.Circulation); @@ -5673,10 +5673,10 @@ namespace YLErp.Modules.RiskModule } return null; case "轧差集中度": - if (current.Circulation == 0) - { - throw new Exception($"{tag}:{current.UnderlyingCode}发行规模数据未维护"); - } + //if (current.Circulation == 0) + //{ + // throw new Exception($"{tag}:{current.UnderlyingCode}发行规模数据未维护"); + //} currentValue = current.Circulation == 0 ? 0 : currentValue / Convert.ToDouble(current.Circulation); posiPv = positionList.Where(s => s.UnderlyingCode == current.UnderlyingCode && !s.Current).Sum(s => s.Pv); posiVal = current.Circulation == 0 ? 0 : Convert.ToDouble(posiPv / current.Circulation);