package com.malk.huagao.mapper;

import com.malk.huagao.entity.KdYdCustomer;
import com.malk.huagao.entity.KdYdCustomerReferrer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LQY
 * @since 2025-10-14
 */
public interface KdYdCustomerReferrerMapper extends BaseMapper<KdYdCustomerReferrer> {
    @Select("SELECT id, formInstId, tjruuid, bm, update_time FROM KD_YD_CUSTOMER_REFERRER " +
            "WHERE update_time >= #{startTime} " +
            "AND bm IS NOT NULL")
    List<KdYdCustomerReferrer> selectRecentUpdated(LocalDateTime startTime);
}
