| | |
| | | package cn.flightfeather.supervision.business.fume.item |
| | | |
| | | import cn.flightfeather.supervision.business.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule2 |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import javax.annotation.PostConstruct |
| | | |
| | | @Component |
| | |
| | | override var id: String = "PSQUi9f0f7JK6w9d" |
| | | |
| | | override var name: String="油烟在线监测数据量级" |
| | | |
| | | @Autowired |
| | | lateinit var dustDataResultMapper: DustDataResultMapper |
| | | |
| | | /** |
| | | * 徐汇区餐饮监管平台联网记录、在线率分析数据和高峰经营时段小时超标情况 |
| | |
| | | * @return true 当月高峰经营时段出现三次及以上10分钟均值超标或显示净化装置较脏 |
| | | */ |
| | | private fun condition2(): Boolean { |
| | | return false |
| | | val r = dustDataResultMapper.selectByExample(Example(DustDataResult::class.java).apply { |
| | | createCriteria().andGreaterThanOrEqualTo("drTime", info.sTime) |
| | | .andLessThan("drTime", info.eTime) |
| | | .andEqualTo("drSceneId", info.sceneId) |
| | | }) |
| | | |
| | | var result = false |
| | | r.forEach { |
| | | if (it.drExceedTimes > 0) { |
| | | result = true |
| | | } |
| | | } |
| | | return result |
| | | } |
| | | |
| | | /** |