From 274bc2d0f7fe8fe7525196e4d7d6ece1cafe2c6c Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期日, 04 二月 2024 17:32:14 +0800 Subject: [PATCH] 1. 新增静安50分制评估结果转换逻辑; 2. 新增根据坐标圆心和半径查询范围内场景逻辑; --- src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/ScoreItem.kt | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/ScoreItem.kt b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/ScoreItem.kt index 4a50913..6264100 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/ScoreItem.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/ScoreItem.kt @@ -66,7 +66,7 @@ * @param size 浼犲叆璇勫垎鏉$洰鐨勬暟閲忥紝璇勫垎鏉$洰鎸夌収涓�瀹氳鍒欒繘琛屾帓搴� * @return 杩斿洖闇�瑕佹墸鍒嗙殑璇勫垎鏉$洰鐨勫簭鍙� */ - abstract fun otherProblem(size: Int): Int? + abstract fun otherProblem(size: Int): List<Int>? /** * 鑷姩璇勫垎璁$畻閫昏緫 @@ -77,7 +77,9 @@ return } - otherProblem(rulePair?.second!!.size)?.let {i-> rulePair?.second!![i].getScore() } + otherProblem(rulePair?.second!!.size)?.let { it.forEach {i -> + rulePair?.second!![i].getScore() + } } ScoreUtil.subRuleCal(rulePair) } -- Gitblit v1.9.3