package com.malk.huagao.mapper;

import com.malk.huagao.entity.KdYdDelivery;
import com.malk.huagao.entity.KdYdDeliveryDetail;
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-15
 */
public interface KdYdDeliveryDetailMapper extends BaseMapper<KdYdDeliveryDetail> {
    @Select("SELECT delivery_id, mdh, update_time, wlbm FROM KD_YD_DELIVERY_DETAIL " +
            "WHERE update_time >= #{startTime} " +
            "AND mdh IS NOT NULL")
    List<KdYdDeliveryDetail> selectRecentUpdated(LocalDateTime startTime);
}
