From 52a0c16de9b0955a5f092560b73f16e41684f97b Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 31 十二月 2024 10:13:35 +0800
Subject: [PATCH] 1. 环信码生成时,如果在线场景当期没有评估(未巡查)结果,则延用历史最新一次的结果; 2. 新增跨时间跨月度的历史整改记录查询逻辑 3. 优化获取顶层任务和日任务的获取逻辑

---
 src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/restaurant/ReScoreItem7.kt |   19 +++----------------
 1 files changed, 3 insertions(+), 16 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..965ba77 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
@@ -1,8 +1,6 @@
 package cn.flightfeather.supervision.business.autooutput.score.restaurant
 
 import cn.flightfeather.supervision.business.autooutput.score.ScoreItem
-import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule
-import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule2
 import cn.flightfeather.supervision.domain.ds2.entity.LedgerRecord
 import cn.flightfeather.supervision.domain.ds2.entity.LedgerSubType
 import cn.flightfeather.supervision.domain.ds2.mapper.LedgerRecordMapper
@@ -12,19 +10,10 @@
 import tk.mybatis.mapper.entity.Example
 import java.time.LocalDateTime
 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 +35,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 +55,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