package com.inkasso.factoring.purchManagement.service;

import com.inkasso.factoring.file.entity.FileStorageDO;
import com.inkasso.factoring.purchManagement.entity.CPurchContractSupplementInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inkasso.factoring.purchManagement.entity.vo.PurchContractChangeVo;

/**
 * <p>
 * 采购合同-补充信息表 服务类
 * </p>
 *
 * @author yafan
 * @since 2023-12-15
 */
public interface ICPurchContractSupplementInfoService extends IService<CPurchContractSupplementInfo> {


    /**
     * 销售合同变更录入
     * @param vo
     * @return
     */
    boolean change(PurchContractChangeVo vo);

    /**
     * 获取详情
     * @param id
     * @return
     */
    PurchContractChangeVo getDetail(Long id);


    /**
     * 获取合同编号
     * @param businessKey
     * @return
     */
    String getContractNumber(Long businessKey);

    FileStorageDO makeContract(Long businessKey, String otherConvention);

    /**
     * 查看历史
     * @param id
     * @return
     */
    PurchContractChangeVo getView(Long id);


}
