package com.malk.huagao.mapper;

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

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

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LQY
 * @since 2025-10-16
 */
public interface KdYdMaterialMapper extends BaseMapper<KdYdMaterial> {
    @Select("SELECT id, wlbm, wlmc, update_time FROM KD_YD_MATERIAL " +
            "WHERE update_time >= #{startTime} " +
            "AND wlmc IS NOT NULL "+"AND wlmc IS NOT NULL")
    List<KdYdMaterial> selectRecentUpdated(LocalDateTime startTime);
}
