package com.malk.huagao.mapper;

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

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

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LQY
 * @since 2025-10-15
 */
public interface KdYdDeliveryMapper extends BaseMapper<KdYdDelivery> {
    @Select("SELECT id, forminstid, djbh, update_time FROM KD_YD_DELIVERY " +
            "WHERE update_time >= #{startTime} " +
            "AND djbh IS NOT NULL")
    List<KdYdDelivery> selectRecentUpdated(LocalDateTime startTime);
}
