package com.jeesharp.business.modules.marketing.memberTenant.mapper;

import com.jeesharp.business.modules.marketing.memberTenant.entity.MemberTenant;
import com.jeesharp.business.modules.marketing.memberTenant.vo.MemberTenantQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员-店铺租户关系 Mapper，对应表 {@code app_member_tenant}。
 *
 * @author jeesharp
 * @since 2026-06-25
 */
@Mapper
public interface MemberTenantMapper extends BaseMapper<MemberTenant, MemberTenantQueryVO> {

    /**
     * 按会员与店铺租户查询关系（含已解绑，不含逻辑删除）。
     */
    MemberTenant getByMemberAndTenant(@Param("memberId") String memberId, @Param("tenantId") String tenantId);
}
