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_10: ScoreItem() {
|
companion object {
|
private lateinit var instance: ScoreItem_10
|
}
|
|
@PostConstruct
|
fun init() {
|
instance = this
|
}
|
|
override var id: String = ""
|
|
override var name: String = "参与环保部门线下培训情况"
|
|
override var maxScore: Int = 2
|
|
override fun calScore(): Pair<Int, Int> {
|
return if (condition1()) {
|
Pair(1, minScore)
|
} else {
|
Pair(0, maxScore)
|
}
|
}
|
|
/**
|
* 未参与环保部门线下培训 -2分
|
*/
|
private fun condition1(): Boolean {
|
return false
|
}
|
}
|