| | |
| | | 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; |
| | |
| | | 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<>(); |
| | | } |