feiyu02
2024-08-13 b8cc591541b88dd2bb93f111f8e8075842dce7ca
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)
    }
    /**