package com.jwipc.order.mapper;

import com.jwipc.order.entity.ArrivalControlConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.order.model.po.ArrivalControlConfigPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 到货控制配置表 Mapper 接口
 * </p>
 *
 * @author WT
 * @since 2024-03-06
 */
public interface ArrivalControlConfigMapper extends BaseMapper<ArrivalControlConfig> {
    /**
     * 根据送货单ID  查对应的到货周期配置
     *
     * @param deliveryIds              送货单IDS
     * @param defaultCargoWeek 没有匹配的的默认周期
     * @return 周期配置
     */
    List<ArrivalControlConfigPO> selectCargoWeek(@Param("ids") List<String> deliveryIds, @Param("defaultCargoWeek") String defaultCargoWeek);
}
