package cn.flightfeather.supervision.business.fume.item
|
|
import cn.flightfeather.supervision.business.ScoreItem
|
import org.springframework.beans.factory.annotation.Autowired
|
import org.springframework.stereotype.Component
|
import javax.annotation.PostConstruct
|
|
@Component
|
class ScoreItem_6 : ScoreItem() {
|
companion object {
|
private lateinit var instance: ScoreItem_6
|
}
|
|
@Autowired
|
lateinit var scoreItem5: ScoreItem_5
|
|
@PostConstruct
|
fun init() {
|
instance = this
|
}
|
|
override var id: String = "JmcRohk4fWO1eOpW"
|
|
override var name: String = "空调、风机噪声"
|
|
/**
|
* 执法检查情况,无检查默认不扣分。
|
* 选项如下:
|
* 1.噪声无异常或隔噪、降噪措施完备
|
* 2.安装位置距离住户较近,无隔噪、降噪措施,噪声或振动扰民
|
* 3.昼间>60dB或噪声明显,无隔噪、降噪措施,夜间正常
|
* 4.夜间>50dB或噪声明显导致扰民,且无隔噪、降噪措施
|
*/
|
override fun otherProblem(size: Int): Int? {
|
var i = 3
|
if (i > size - 1) i = size - 1
|
if (condition1()) {
|
return i
|
}
|
return null
|
}
|
|
/**
|
* @return true 有执法检查情况
|
*/
|
private fun condition1(): Boolean {
|
return false
|
}
|
}
|