package com.gxwebsoft.shop.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.common.system.entity.User;
import com.gxwebsoft.common.system.param.UserParam;
import com.gxwebsoft.shop.entity.MerchantAccount;
import com.gxwebsoft.shop.param.MerchantAccountParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商户账号Mapper
 *
 * @author 科技小王子
 * @since 2024-04-19 12:02:24
 */
public interface MerchantAccountMapper extends BaseMapper<MerchantAccount> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<MerchantAccount>
     */
    List<MerchantAccount> selectPageRel(@Param("page") IPage<MerchantAccount> page,
                             @Param("param") MerchantAccountParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<MerchantAccount> selectListRel(@Param("param") MerchantAccountParam param);

    @InterceptorIgnore(tenantLine = "true")
    MerchantAccount getMerchantAccountByPhone(@Param("param") MerchantAccountParam param);

}
