From e7ce285475a1355eeaeaba1855e3cd615eafa13b Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期五, 24 十一月 2023 11:49:19 +0800
Subject: [PATCH] 1.修改了统计异常类型聚集度的具体异常个数的逻辑

---
 src/utils/risk_estimate_common_function/index.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/utils/risk_estimate_common_function/index.js b/src/utils/risk_estimate_common_function/index.js
index a721e26..74e6ee3 100644
--- a/src/utils/risk_estimate_common_function/index.js
+++ b/src/utils/risk_estimate_common_function/index.js
@@ -146,8 +146,14 @@
     obj['exceptionRecurrence'] = exceptionTyprRecurRate
     obj['exceptionTypeAggregation'] = exceptionTypeAggregation
 
-    // 淇濆瓨璇ユ椂娈靛嚭鐜扮殑寮傚父
-    obj['exception'] = exception
+
+    if(exception.length>0){
+      // 淇濆瓨璇ユ椂娈靛嚭鐜扮殑寮傚父
+      obj['exception'] = exception.length
+    }else{
+      obj['exception'] = 0
+    }
+    
 
     // 涓夌被寮傚父鍑虹幇鐨勬鏁�
     obj['mutationCount'] = mutationCount

--
Gitblit v1.9.3