package com.inkasso.factoring.settlement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.inkasso.factoring.settlement.entity.SettlementGoodsInfo;
import org.springframework.stereotype.Service;

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

public interface SettlementGoodsInfoService extends IService<SettlementGoodsInfo> {
    /**
     * 根据basicId查询所有货物
     *
     * @param basicInfoIds
     * @param basicInfoIds
     * @return
     */
    List<SettlementGoodsInfo> findByBasicIds(List<Long> basicInfoIds);

    List<SettlementGoodsInfo> listByAcceptanceId(Long id);
    /**
     * 计算销售总价之和
     *
     * @param basicInfoId
     * @return
     */
    BigDecimal sumSalesTotalPrice(Long basicInfoId);
}
