From 8f069a80ed15dd431450f58304513aa3985e62ba Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 14 十一月 2023 16:48:16 +0800 Subject: [PATCH] 1. 新增风险值的查询逻辑; --- src/main/java/com/flightfeather/monitor/domain/ds1/repository/RiskValueRep.kt | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/flightfeather/monitor/domain/ds1/repository/RiskValueRep.kt b/src/main/java/com/flightfeather/monitor/domain/ds1/repository/RiskValueRep.kt index dc3e5d6..338db81 100644 --- a/src/main/java/com/flightfeather/monitor/domain/ds1/repository/RiskValueRep.kt +++ b/src/main/java/com/flightfeather/monitor/domain/ds1/repository/RiskValueRep.kt @@ -26,16 +26,27 @@ } } + /** + * 鎻掑叆鍒楄〃 + * @param list + */ fun insert(list: List<RiskValue>): Int { return riskValueMapper.insertList(list) } - fun select(mnCode: String, date: LocalDate): List<RiskValue?> { + /** + * 鏌ヨ + * @param mnCode + * @param date + * @param type + */ + fun select(mnCode: String, date: LocalDate, type: String): List<RiskValue?> { val s = date.withDayOfMonth(1).atStartOfDay() val e = s.plusMonths(1).minusSeconds(1) return riskValueMapper.selectByExample(Example(RiskValue::class.java).apply { createCriteria().andEqualTo("mnCode", mnCode) .andBetween("lst", s, e) + .andEqualTo("type", type) }) } } \ No newline at end of file -- Gitblit v1.9.3