package com.aircraft.modules.system.service;

import com.aircraft.modules.system.domain.AttachmentMaterial;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
public interface IAttachmentMaterialService extends IService<AttachmentMaterial> {

    /**
     * 批量新增材料
     *
     * @param attachmentMaterialList  {@link List<AttachmentMaterial>}
     */
    void batchAddAttachmentMaterial(List<AttachmentMaterial> attachmentMaterialList);

    /**
     * 根据业务ID删除材料
     *
     * @param businessId 业务ID
     * @param businessCode    业务编码
     */
    void deleteAttachmentMaterialByBusinessId(Long businessId, String businessCode);

    /**
     * 批量获取：根据业务ID和业务编码查询材料
     *
     * @param businessIds  业务ID集合
     * @param businessCodes  业务codes集合
     * @return  {@link List<AttachmentMaterial>}
     */
    List<AttachmentMaterial> obtainAttachmentMaterialByBusinessIdAndCode(List<Long> businessIds, List<String> businessCodes);
}
