package com.sunxung.factoring.service.salescontractmanagement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.salescontractmanagement.CSalesContractGoodsInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Description : 销售合同货物信息service
 * @Author : L.Jia
 * @Date: 2021-09-14 13:53
 */
public interface SalesContractGoodsInfoService extends IService<CSalesContractGoodsInfo> {

    /**
     * 根据销售合同基础信息Id获取货物信息
     *
     * @param basicInfoId
     * @return
     */
    List<CSalesContractGoodsInfo> findByBasicInfoId(Long basicInfoId);

    /**
     * 根据货物Id获取货物信息
     *
     * @param goodsId
     * @return
     */
    CSalesContractGoodsInfo findByGoodsId(Long goodsId, Boolean supplement);

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