package com.ltgk.boat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltgk.boat.domain.dto.GetBoatInsuranceOverDueListReq;
import com.ltgk.boat.domain.dto.GetBoatInsuranceReq;
import com.ltgk.boat.domain.entity.DsBoatInsurance;
import com.ltgk.boat.domain.vo.BoatInsuranceOverDueVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author: w1826
 * @Description: TODO
 * @Date: 2024/10/29 10:11
 * @Version: 1.0
 */
@Mapper
public interface DsBoatInsuranceMapper extends BaseMapper<DsBoatInsurance> {
    List<DsBoatInsurance> getBoatInsuranceList(@Param("params") GetBoatInsuranceReq getBoatInsuranceReq,
                                               @Param("streets") String streets,
                                               @Param("villages") String villages);

    Long selectCount(@Param("date") Date date);

    List<BoatInsuranceOverDueVo> getBoatInsuranceOverDueList(GetBoatInsuranceOverDueListReq getBoatInsuranceOverDueListReq);
}
