package com.kxs.user.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kxs.user.api.model.KxsPartner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * 合伙人表(KxsPartner)表数据库访问层
 *
 * @author 系统
 * @since 2024-02-22 15:39:26
 */
@Mapper
public interface KxsPartnerMapper extends BaseMapper<KxsPartner> {

    /**
     * 查询合伙人状态
     *
     * @param userId      用户 ID
     * @param expiredDate 到期日期
     * @return {@link KxsPartner}
     */
    KxsPartner selectByPartner(@Param("userId") Integer userId, @Param("expiredDate") LocalDateTime expiredDate);
}

