From c5f380b69707a9a09fe988a2f4bd98e142bf64ae Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 10 七月 2025 17:29:48 +0800 Subject: [PATCH] 2025.7.10 1. 修改动态溯源异常判断逻辑 --- src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/config/RTExcWindLevelConfig.kt | 80 ++++++++++++++++++++++++++++++++++------ 1 files changed, 68 insertions(+), 12 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/config/RTExcWindLevelConfig.kt b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/config/RTExcWindLevelConfig.kt index d39d51d..5665000 100644 --- a/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/config/RTExcWindLevelConfig.kt +++ b/src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/config/RTExcWindLevelConfig.kt @@ -65,37 +65,71 @@ ) /****鏁版嵁蹇�熶笂鍗�*****************************************************************************/ - var changeRateCondition = WindLevelCondition( - .0 to Double.MAX_VALUE, - 0.1 to Double.MAX_VALUE, - DistanceType.TYPE1, - 3 - ) // 鐩戞祴鍥犲瓙鍦ㄤ竴涓洃娴嬪懆鏈燂紙4绉掞級鍐呮甯稿彉鍖栫殑閲忕骇鑼冨洿 - var changeRateUp = mutableMapOf( + var changeRateUp1 = mutableMapOf( FactorType.PM25 to WindLevelCondition( - .0 to Double.MAX_VALUE, + .0 to 1.5, 4.0 to Double.MAX_VALUE, DistanceType.TYPE1, 3 ), FactorType.PM10 to WindLevelCondition( - .0 to Double.MAX_VALUE, + .0 to 1.5, 4.0 to Double.MAX_VALUE, DistanceType.TYPE1, 3 ), FactorType.VOC to WindLevelCondition( - .0 to Double.MAX_VALUE, + .0 to 1.5, 6.0 to Double.MAX_VALUE, DistanceType.TYPE1, 1 ), ) + var changeRateUp2 = mutableMapOf( + FactorType.PM25 to WindLevelCondition( + 1.6 to 7.9, + 4.0 to Double.MAX_VALUE, + DistanceType.TYPE3, + 3 + ), + FactorType.PM10 to WindLevelCondition( + 1.6 to 7.9, + 4.0 to Double.MAX_VALUE, + DistanceType.TYPE3, + 3 + ), + FactorType.VOC to WindLevelCondition( + 1.6 to 7.9, + 6.0 to Double.MAX_VALUE, + DistanceType.TYPE3, + 1 + ), + ) + var changeRateUp3 = mutableMapOf( + FactorType.PM25 to WindLevelCondition( + 8.0 to 13.8, + 4.0 to Double.MAX_VALUE, + DistanceType.TYPE4, + 3 + ), + FactorType.PM10 to WindLevelCondition( + 8.0 to 13.8, + 4.0 to Double.MAX_VALUE, + DistanceType.TYPE4, + 3 + ), + FactorType.VOC to WindLevelCondition( + 8.0 to 13.8, + 6.0 to Double.MAX_VALUE, + DistanceType.TYPE4, + 1 + ), + ) - /****鏁版嵁蹇�熶笅闄�*****************************************************************************/ + /****鏁版嵁蹇�熶笅闄嶆彁閱�*****************************************************************************/ // 鐩戞祴鍥犲瓙鍦ㄤ竴涓洃娴嬪懆鏈燂紙4绉掞級鍐呮甯稿彉鍖栫殑閲忕骇鑼冨洿 - var changeRateDown = mutableMapOf( + var changeRateWarnDown = mutableMapOf( FactorType.PM25 to WindLevelCondition( .0 to Double.MAX_VALUE, -Double.MAX_VALUE to -2.0, @@ -115,4 +149,26 @@ 3 ), ) + + /****鏁版嵁鏈変笂鍗囪秼鍔挎彁閱�*****************************************************************************/ + var changeRateWarnUp = mutableMapOf( + FactorType.PM25 to WindLevelCondition( + .0 to Double.MAX_VALUE, + 2.0 to 4.0, + DistanceType.TYPE1, + 3 + ), + FactorType.PM10 to WindLevelCondition( + .0 to Double.MAX_VALUE, + 2.0 to 4.0, + DistanceType.TYPE1, + 3 + ), + FactorType.VOC to WindLevelCondition( + .0 to Double.MAX_VALUE, + 3.0 to 6.0, + DistanceType.TYPE1, + 1 + ), + ) } \ No newline at end of file -- Gitblit v1.9.3