package com.heyu.api.data.dao.vv;
/**
* <p>
* 提现记录 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.data.entity.vv.VvActivityEntity;
import com.heyu.api.data.entity.vv.VvDrawCashRecordEntity;
import com.lz.mybatis.plugin.annotations.Column;
import com.lz.mybatis.plugin.annotations.IF;
import com.lz.mybatis.plugin.annotations.OrderBy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VvDrawCashRecordDao extends BaseMapper<VvDrawCashRecordEntity> {


	VvDrawCashRecordEntity selectVvDrawCashRecordById(@Param("id")Long id);


	Long insertVvDrawCashRecord(VvDrawCashRecordEntity vvDrawCashRecord);


	Long insertOrUpdateVvDrawCashRecord(VvDrawCashRecordEntity vvDrawCashRecord);


	int updateVvDrawCashRecordById(VvDrawCashRecordEntity vvDrawCashRecord);


	int updateCoverVvDrawCashRecordById(VvDrawCashRecordEntity vvDrawCashRecord);


	int deleteVvDrawCashRecordById(@Param("id")Long id);


    @OrderBy(VvDrawCashRecordEntity.id_)
    List<VvDrawCashRecordEntity> selectByCondition(IPage page,
                                                   @IF Long buyerId,
                                                   @IF String buyerName,
                                                   @IF String buyerPhone,
                                                   @IF String buyerWeixin,
                                                   @IF String status,
                                                   @IF @Column(VvActivityEntity.create_timestamp) Long minCreateTimestamp,
                                                   @IF @Column(VvActivityEntity.create_timestamp) Long maxCreateTimestamp,
                                                   @OrderBy @IF @Column(VvActivityEntity.create_timestamp) String createTimestampSort);
}