package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeequan.jeepay.db.entity.AccountFundInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2024-03-28
 */
public interface AccountFundInfoMapper extends BaseMapper<AccountFundInfo> {

    /**
     * 获取指定账户当前待审核的数据
     * @param accountNo
     * @return
     */
//    @Select("SELECT * FROM t_account_fund_info WHERE account_no = #{accountNo} and state in (1,2) AND DATE(created_at) = CURDATE()")
    @Select("SELECT * FROM t_account_fund_info WHERE account_no = #{accountNo} and state in (1,2)")
    List<AccountFundInfo> listNowByAuditData(String accountNo);
}
