package com.sonic.lion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sonic.lion.domain.entity.ProcessingWithdraw;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProcessingWithdrawDao extends BaseMapper<ProcessingWithdraw> {

    @Select("select * from t_processing_withdraw where next_hand_time < now() limit 50")
    List<ProcessingWithdraw> findAll();


    @Select("select * from t_processing_withdraw where call_channel_record_id =  #{id} limit 1")
    ProcessingWithdraw findByRecordId(@Param("id")Long id);
}
