From b8cc591541b88dd2bb93f111f8e8075842dce7ca Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 13 八月 2024 17:21:06 +0800
Subject: [PATCH] 1. 新增设备信息相关功能 2. 修正自评估中数据自动评分的部分逻辑

---
 src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt
index 24b01a8..c6bd1c4 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt
@@ -14,17 +14,9 @@
 import java.time.ZoneId
 import javax.annotation.PostConstruct
 
+@Deprecated(level = DeprecationLevel.HIDDEN, message = "鍙拌处鐨勮瘎浼伴�氳繃宸℃煡闂鑷姩瀵瑰簲")
 @Component
 class ReScoreItem7: ScoreItem() {
-    companion object {
-        private lateinit var instance: ReScoreItem7
-    }
-
-    @PostConstruct
-    fun init() {
-        instance = this
-    }
-
     init {
         exemption = true
     }
@@ -46,7 +38,7 @@
      *      2.鍙拌处灏戦噺缂哄け鎴栨湭鍙婃椂璁板綍鏇存柊
      *      3.鍙拌处涓ラ噸缂哄け鎴栧叧閿彴璐︽棤鏁�
      */
-    override fun otherProblem(size: Int): Int? {
+    override fun otherProblem(size: Int): List<Int>? {
         // TODO: 2021/3/9 鎵惧嚭鐢ㄦ埛绫诲瀷瀵瑰簲鐨勫繀濉彴璐�
         val time = evaluationScene.subTask.value?.planstarttime
         val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault())
@@ -66,13 +58,11 @@
         var i = 1
         if (condition1(ledgerTypeCount, rCount)) {
             if (i > size - 1) i = size - 1
-            return i
         } else if (condition2(ledgerTypeCount, rCount)) {
             i = 2
             if (i > size - 1) i = size - 1
-            return i
         }
-        return null
+        return listOf(i)
     }
 
     /**

--
Gitblit v1.9.3