feiyu02
2023-11-15 45fdeee912088efbd07a748a011682c6c6d1ce51
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<>();
        }