package com.inkasso.factoring.salesManagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.inkasso.factoring.common.entity.ResponseJson;
import com.inkasso.factoring.salesManagement.entity.CSalesContractBasicInfo;
import com.inkasso.factoring.salesManagement.entity.CSalesContractGoodsInfo;
import org.springframework.web.multipart.MultipartFile;

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

/**
 * <p>
 * 销售合同-基本信息表 服务类
 * </p>
 *
 * @author yafan
 * @since 2023-11-28
 */
public interface ICSalesContractBasicInfoService extends IService<CSalesContractBasicInfo> {


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

    /**
     * 销售合同录入
     *
     * @param salesContractBasicInfo
     */
    void doAdd(CSalesContractBasicInfo salesContractBasicInfo);

    /**
     * 导入货物信息
     *
     * @param file
     * @return
     */
    List<CSalesContractGoodsInfo> importGoodsInfo(MultipartFile file);


    /**
     * 下载销售合同货物信息模板
     *
     * @return
     */
    void downloadTemplateFile(HttpServletResponse response);

}
