feiyu02
2024-01-09 c1becf4cbd2e99601ce011c14b8742427249cfb4
src/main/kotlin/cn/flightfeather/supervision/business/autooutput/score/construction/CsScoreItem2.kt
@@ -40,7 +40,7 @@
     *      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)
@@ -51,14 +51,14 @@
                .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)
            }
        }