From 357c5a3c4659f1fe9e46e8c20827ab757c5d3929 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期四, 14 十二月 2023 15:27:34 +0800 Subject: [PATCH] 增加数据请求配置表和异常分析配置表的接口 --- src/main/java/com/flightfeather/monitor/domain/ds1/repository/DustExceptionDataRep.kt | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/flightfeather/monitor/domain/ds1/repository/DustExceptionDataRep.kt b/src/main/java/com/flightfeather/monitor/domain/ds1/repository/DustExceptionDataRep.kt index 3bf25c9..a6d60c0 100644 --- a/src/main/java/com/flightfeather/monitor/domain/ds1/repository/DustExceptionDataRep.kt +++ b/src/main/java/com/flightfeather/monitor/domain/ds1/repository/DustExceptionDataRep.kt @@ -43,4 +43,14 @@ fun insert(list: List<DustExceptionData>): Int { return dustExceptionDataMapper.insertList(list) } + + fun select(mnCode: String, date: LocalDate): List<DustExceptionData?> { + val s = date.atStartOfDay() + val e = s.plusDays(1).minusSeconds(1) + return dustExceptionDataMapper.selectByExample(Example(DustExceptionData::class.java).apply { + createCriteria().andBetween("beginTime", s, e) + .andEqualTo("mnCode", mnCode) + orderBy("beginTime") + }) + } } \ No newline at end of file -- Gitblit v1.9.3