| | |
| | | * 1.监测数据出现单日及以上有效超标 |
| | | * 2.监测数据月均值超区域月均值20%以上或数据明显异常 |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | override fun otherProblem(size: Int): List<Int>? { |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val st = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | |
| | | .andEqualTo("drSceneId", evaluationScene.scene.value?.guid) |
| | | }) |
| | | |
| | | var result: Int? = null |
| | | var result = mutableListOf<Int>() |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = 0 |
| | | result.add(0) |
| | | } |
| | | if (it.drOverAvgPer > 0.2) { |
| | | result = 1 |
| | | result.add(1) |
| | | } |
| | | } |
| | | |