package com.malk.huagao.mapper;

import com.malk.huagao.entity.KdYdReceivable;
import com.malk.huagao.entity.KdYdZp;
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-16
 */
public interface KdYdZpMapper extends BaseMapper<KdYdZp> {
    @Select("SELECT id, forminstid, djbh, fph, update_time FROM KD_YD_ZP " +
            "WHERE update_time >= #{startTime} " +
            "AND djbh IS NOT NULL "+"AND fph IS NOT NULL")
    List<KdYdZp> selectRecentUpdated(LocalDateTime startTime);
}
