package com.sunxung.factoring.service.salescontractmanagement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.salescontractmanagement.SalesContractPaymentCondition;

import java.util.List;

/**
 * @Description : 销售合同付款条件service
 * @Author : L.Jia
 * @Date: 2021-09-14 10:57
 */
public interface SalesContractPaymentConditionService extends IService<SalesContractPaymentCondition> {

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

    /**
     * 付款条件信息添加
     *
     * @param basicInfoId
     * @param paymentConditionList
     */
    void add(Long basicInfoId, List<SalesContractPaymentCondition> paymentConditionList);
}
