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/service/impl/RiskValueServiceImpl.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/flightfeather/monitor/service/impl/RiskValueServiceImpl.java b/src/main/java/com/flightfeather/monitor/service/impl/RiskValueServiceImpl.java
index 07bb3cf..a3aa216 100644
--- a/src/main/java/com/flightfeather/monitor/service/impl/RiskValueServiceImpl.java
+++ b/src/main/java/com/flightfeather/monitor/service/impl/RiskValueServiceImpl.java
@@ -4,6 +4,7 @@
 import com.flightfeather.monitor.domain.ds1.mapper.RiskValueMapper;
 import com.flightfeather.monitor.domain.ds1.repository.RiskValueRep;
 import com.flightfeather.monitor.mapper.RiskAnalysisMapper;
+import com.flightfeather.monitor.pojo.RiskValuePojo;
 import com.flightfeather.monitor.service.RiskValueService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -20,10 +21,13 @@
     private RiskValueRep riskValueRep;
 
     @Override
-    public List<RiskValue> queryRiskDataByMonth(String mnCode, String month, String type) {
+    public List<RiskValuePojo> queryRiskDataByMonth(String mnCode, String month, String type) {
         LocalDate date = LocalDate.parse(month);
         if (date != null) {
-            return riskValueRep.select(mnCode, date, type);
+            date = date.withDayOfMonth(1);
+            List<RiskValuePojo> res = riskValueMapper.queryRiskDataByMonth(mnCode, date, type);
+            return res;
+//            return riskValueRep.select(mnCode, date, type);
         } else {
             return new ArrayList<>();
         }

--
Gitblit v1.9.3