From df500bf6ee29b3fead5b920ed366230b62a4c7ee Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 22 十一月 2023 09:57:42 +0800 Subject: [PATCH] 1.新增了站点信息查询的接口 2.修改了扬尘已有接口的参数以及sql语句 3.修改了用户登陆接口 --- 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