package com.sunxung.factoring.service.underlying;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.underlying.UnderlyingAccountsReceivableInfo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author liutao
 * @date 2021.10.11
 */
public interface UnderlyingAccountsReceivableInfoService extends IService<UnderlyingAccountsReceivableInfo> {

    /**
     * 根据底层基础信息Id获取底层应收账款信息列表
     *
     * @param basicId
     * @return
     */
    List<UnderlyingAccountsReceivableInfo> findByBasicId(Long basicId);

    /**
     * 计算应收账款净额之和
     *
     * @param basicId
     * @return
     */
    BigDecimal sumNetAmount(Long basicId);
}
