package com.clx.performance.mapper.settle;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clx.performance.model.settle.SettlementDriverDetail;
import com.clx.performance.sqlProvider.settle.SettlementDriverDetailSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface SettlementDriverDetailMapper extends BaseMapper<SettlementDriverDetail> {


    @SelectProvider(type = SettlementDriverDetailSqlProvider.class, method = "listUnPay")
    List<SettlementDriverDetail> listUnPay(@Param("beginTime") LocalDateTime beginTime);

    @SelectProvider(type = SettlementDriverDetailSqlProvider.class, method = "findByDriverSettlementIds")
    List<SettlementDriverDetail> findByDriverSettlementIds(List<Integer> ids);
}