package com.sunxung.factoring.service.purchcontractmanagement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.purchcontractmanagement.PurchContractPaymentCondition;

import java.util.List;

/**
 * @Description : 采购合同付款条件信息service
 * @Author : JiaYf
 * @Date: 2021-09-15 14:31
 */
public interface PurchContractPaymentConditionService extends IService<PurchContractPaymentCondition> {
    /**
     * 根据采购合同基础信息Id获取
     *
     * @param purchContId 采购合同基础信息Id
     * @return
     */
    List<PurchContractPaymentCondition> findByPurchContId(Long purchContId);

    /**
     * 添加付款条件
     *
     * @param purchId
     * @param paymentConditionList
     */
    void add(Long purchId, List<PurchContractPaymentCondition> paymentConditionList);
}
