| | |
| | | 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()) { |