package com.sunxung.factoring.service.purchcontractmanagement;

import com.sunxung.factoring.entity.purchcontractmanagement.PurchContractSignApproval;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.sys.FileStorage;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 采购合同-签署审核表 服务类
 * </p>
 *
 * @author daxian
 * @since 2022-03-14
 */
public interface IPurchContractSignApprovalService extends IService<PurchContractSignApproval> {
    /**
     * 查询信息、用于历史列表展示
     *
     * @param id
     * @return
     */
    PurchContractSignApproval getView(Long id);

    /**
     * 采购合同签署审核
     *
     * @param purchContractFinalApproval
     * @param businessKey
     * @param taskId
     */
    void audit(PurchContractSignApproval purchContractFinalApproval, Long businessKey, String taskId);

    /**
     * 预览合同
     *
     * @param businessKey
     * @param taskId
     * @param request
     * @param response
     * @return List<FileStorage>
     */
    List<FileStorage> priviewPurchContract(String businessKey, String taskId, HttpServletRequest request, HttpServletResponse response);

    /**
     * 下载合同
     *
     * @param businessKey
     * @param taskId
     * @param request
     * @param response
     */
    void exportPurchContract(String businessKey, String taskId, HttpServletRequest request, HttpServletResponse response);
}
