package com.sunxung.factoring.service.settlement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.settlement.SettlementGoodsInfo;

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

/**
 * @author liutao
 * @date 2021.09.22
 */
public interface SettlementGoodsInfoService extends IService<SettlementGoodsInfo> {

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


    /**
     * 根据验收单id获取结算单货物
     *
     * @param acceptanceBasicId
     * @return
     */
    List<SettlementGoodsInfo> listByAcceptanceId(Long acceptanceBasicId);

    /**
     * 计算销售总价之和
     *
     * @param basicInfoId
     * @return
     */
    BigDecimal sumSalesTotalPrice(Long basicInfoId);
}
