package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.MerchantMoveRecords;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 商户动态码生成记录 Mapper 接口
 * </p>
 *
 * @author bzg
 * @since 2021-07-30
 */
public interface MerchantMoveRecordsMapper extends BaseMapper<MerchantMoveRecords> {

    @Select("select IFNULL(sum(payNum),0) from tb_pluss_merchant_move_records ${ew.customSqlSegment}")
    Integer getPaySuccessCount(@Param(Constants.WRAPPER) Wrapper<MerchantMoveRecords> wrapper);
}
