package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.entity.UserFollowUp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户跟进表Mapper
 */
@Mapper
public interface UserFollowUpMapper extends BaseMapper<UserFollowUp> {
    
    /**
     * 根据资源ID和红娘ID查询最新的跟进记录
     * 
     * @param resourceId 资源ID
     * @param matchmakerId 红娘ID
     * @return 跟进记录
     */
    UserFollowUp selectLatestByResourceIdAndMatchmakerId(
            @Param("resourceId") Integer resourceId,
            @Param("matchmakerId") Integer matchmakerId
    );
}

