package com.inkasso.factoring.salesManagement.service;

import com.inkasso.factoring.salesManagement.entity.CSalesContractGoodsInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Service
public interface ICSalesContractGoodsInfoService 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);
}
