package com.jwipc.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.ShortageData;
import com.jwipc.order.model.po.ShortagePlanReplyPO;
import com.jwipc.order.model.query.BasicForeignQuotaQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 欠料标准预测计划明细周期数据 Mapper 接口
 * </p>
 *
 * @author swq
 * @since 2024-04-28
 */
public interface ShortageDataMapper extends BaseMapper<ShortageData> {
    List<ShortagePlanReplyPO> findSupplierReply(Page<ShortagePlanReplyPO> page, @Param("q") BasicForeignQuotaQuery query);
    List<ShortagePlanReplyPO> findSupplierReply( @Param("q") BasicForeignQuotaQuery query);
    void delShortAgeDetailBySerialNumber( @Param("dateNumber") String dateNumber);
    void delShortAgeDataBySerialNumber( @Param("dateNumber") String dateNumber);

    ShortagePlanReplyPO findSupplierRecentReply(@Param("q") ShortagePlanReplyPO shortagePlanReplyPO);

}
