package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jeequan.jeepay.db.entity.MchQrcodeCard;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 商户码牌表 Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2021-12-28
 */
public interface MchQrcodeCardMapper extends BaseMapper<MchQrcodeCard> {

    /** 查询当前的批次号总数 **/
    Integer selectBatchIdDistinctCount(@Param("createdStart") Date createdStart, @Param("createdEnd") Date createdEnd);

    IPage<MchQrcodeCard> selectPageRecords(IPage page, @Param("condition")MchQrcodeCard condition);

}
