From d1ccf7e1835b3c583da16d90a286e749d5e27c84 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期四, 07 十二月 2023 14:15:20 +0800 Subject: [PATCH] 修改无数据时段的算法 --- 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