package com.sunxung.factoring.service.financing.apply;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.financing.apply.CFinancingGoodsInfo;

import java.math.BigDecimal;

/**
 * <p>
 * 融资申请-货物信息表 服务类
 * </p>
 *
 * @author liutao
 * @since 2023-12-19
 */
public interface ICFinancingGoodsInfoService extends IService<CFinancingGoodsInfo> {

    /**
     * 根据融资基础信息Id计算对应货物的销售总价
     *
     * @param financingBasicInfoId 融资基础信息Id
     * @return
     */
    BigDecimal sumSalesTotalPrice(Long financingBasicInfoId);

    /**
     * 根据融资基础信息Id计算对应货物的采购总价
     *
     * @param financingBasicInfoId 融资基础信息Id
     * @return
     */
    BigDecimal sumPurchaseTotalPrice(Long financingBasicInfoId);
}
