From ae04c5d925b0094e1a1ba1f2ce0bf6da0a6fee04 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 22 一月 2026 17:27:55 +0800
Subject: [PATCH] 2026.1.22 1. 新增台账上传office文档功能; 2. 新增office文档存储原始文档名字功能
---
src/main/kotlin/cn/flightfeather/supervision/common/score/EvaluationUtil.kt | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/common/score/EvaluationUtil.kt b/src/main/kotlin/cn/flightfeather/supervision/common/score/EvaluationUtil.kt
index f03ee76..cff5fdb 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/common/score/EvaluationUtil.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/common/score/EvaluationUtil.kt
@@ -10,15 +10,15 @@
var evaluateLevel: String = ""
}
- fun getEvaluationLevel(totalPoint: Int, rule: Evaluationrule): EvaluationLevel {
+ fun getEvaluationLevel(totalPoint: Int, rule: Evaluationrule?): EvaluationLevel {
val pointLevel = mutableListOf<Pair<Int, Int>>()
- rule.extension1?.split("#")?.forEach {
+ rule?.extension1?.split("#")?.forEach {
val pStr = it.split(",")
pointLevel.add(Pair(pStr[0].toInt(), pStr[1].toInt()))
}
- val evaluateLevel = rule.extension2?.split("#") ?: emptyList()
- val creditTexts = rule.extension3?.split("#") ?: emptyList()
- val levelColors = rule.remark?.split(";") ?: emptyList()
+ val evaluateLevel = rule?.extension2?.split("#") ?: emptyList()
+ val creditTexts = rule?.extension3?.split("#") ?: emptyList()
+ val levelColors = rule?.remark?.split(";") ?: emptyList()
val result = EvaluationLevel()
if (pointLevel.isEmpty() || evaluateLevel.isEmpty() || creditTexts.isEmpty() || levelColors.isEmpty()) {
--
Gitblit v1.9.3