package com.malk.huagao.mapper;

import com.malk.huagao.entity.KdYdCustomer;
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-09
 */
public interface KdYdCustomerMapper extends BaseMapper<KdYdCustomer> {
    @Select("SELECT id, formInstId, khbm, update_time FROM KD_YD_CUSTOMER " +
            "WHERE update_time >= #{startTime} " +
            "AND khbm IS NOT NULL")
    List<KdYdCustomer> selectRecentUpdated(LocalDateTime startTime);
}
