package com.gkhy.safePlatform.riskCtrl.service.baseService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gkhy.safePlatform.riskCtrl.entity.RiskMonthReport; import com.gkhy.safePlatform.riskCtrl.model.vo.db.MonthReportSearchParamVO; import com.gkhy.safePlatform.riskCtrl.repository.RiskMonthReportRepository; import com.gkhy.safePlatform.riskCtrl.service.baseService.RiskMonthReportService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class RiskMonthReportServiceImpl extends ServiceImpl implements RiskMonthReportService { @Autowired private RiskMonthReportRepository riskMonthReportRepository; @Override public RiskMonthReport findByMonth(Byte biz, Long depId, Integer year, Integer month) { if(biz == null || depId == null || year == null || month == null) return null; if(year < 2000 || year > 9999 || month < 1 || month > 12 || depId < 1) return null; return riskMonthReportRepository.findByMonth(biz,depId,year,month); } @Override public List listByConditions(MonthReportSearchParamVO params) { return riskMonthReportRepository.listByConditions(params); } }