package com.aircraft.modules.order.service;

import com.aircraft.modules.order.domain.OrderOperator;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单主单操作人关系表 服务类
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
public interface IOrderOperatorService extends IService<OrderOperator> {

    /**
     * 根据订单ID获取操作人集合
     *
     * @param orderIds  订单ID集合
     * @return  {@link List<OrderOperator>}
     */
    List<OrderOperator> queryAllByOrderIds(List<Long> orderIds);

    /**
     * 批量新增
     *
     * @param orderOperatorList  {@link List<OrderOperator>}
     * @return  boolean
     */
    boolean batchAddOrderOperator(List<OrderOperator> orderOperatorList);

    /**
     * 根据订单ID删除
     *
     * @param orderId  订单ID
     */
    void deleteOrderOperatorByOrderId(Long orderId);
}
