package com.casic.missiles.service.business;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.casic.missiles.dto.ReturnDTO;
import com.casic.missiles.dto.business.outsource.OutsourceCertificateListRequest;
import com.casic.missiles.dto.business.outsource.OutsourceCertificateListResponse;
import com.casic.missiles.model.business.BusinessOutsourceCertificate;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 分包检定证书表 服务类
 * </p>
 *
 * @author wangpeng
 * @since 2023-03-23
 */
public interface IBusinessOutsourceCertificateService extends IService<BusinessOutsourceCertificate> {

    Page<OutsourceCertificateListResponse> listPage(OutsourceCertificateListRequest request, Page<OutsourceCertificateListResponse> page);

    List<OutsourceCertificateListResponse> list(OutsourceCertificateListRequest request);

    List<OutsourceCertificateListResponse> listByCertificateIds(List<Long> ids);

    ReturnDTO addCertificate(BusinessOutsourceCertificate certificate);

    ReturnDTO updateCertificate(BusinessOutsourceCertificate certificate);

    ReturnDTO batchImport(MultipartFile file) throws IOException;
}
