package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.MerchantQrcode;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Djh
 * @since 2020-10-23
 */
public interface MerchantQrcodeMapper extends BaseMapper<MerchantQrcode> {

    List<MerchantQrcode> listPage(Map<String, Object> map);

    Integer countMerchantQrcode(Map<String, Object> map);

    @Select("SELECT * FROM tb_pluss_merchant_qrcode WHERE merchantCode = #{merchantCode} limit 1")
    MerchantQrcode getByMerchantCode(String merchantCode);
}
