package cn.flightfeather.supervision.common.score.item
|
|
import cn.flightfeather.supervision.common.score.ScoreItem
|
import org.springframework.stereotype.Component
|
import javax.annotation.PostConstruct
|
|
@Component
|
class ScoreItem_1: ScoreItem() {
|
companion object {
|
private lateinit var instance: ScoreItem_1
|
}
|
|
@PostConstruct
|
fun init() {
|
instance = this
|
}
|
|
override var id: String = ""
|
|
override var name: String="有无履行环评审批手续"
|
|
override var maxScore: Int = 10
|
|
override fun calScore(): Pair<Int, Int> =
|
if (getProcedure()) {
|
Pair(0, maxScore)
|
} else {
|
Pair(1, minScore)
|
}
|
|
private fun getProcedure(): Boolean {
|
return true
|
}
|
}
|