package com.fjhx.sale.service.purchase;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.sale.entity.purchase.dto.EhsdPurchaseProductDto;
import com.fjhx.sale.entity.purchase.dto.EhsdPurchaseProductSelectDto;
import com.fjhx.sale.entity.purchase.po.EhsdPurchaseProduct;
import com.fjhx.sale.entity.purchase.vo.EhsdPurchaseProductVo;
import com.ruoyi.common.core.service.BaseService;

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


/**
 * <p>
 * ehsd采购产品表 服务类
 * </p>
 *
 * @author 
 * @since 2023-05-17
 */
public interface EhsdPurchaseProductService extends BaseService<EhsdPurchaseProduct> {

    /**
     * ehsd采购产品表分页
     */
    Page<EhsdPurchaseProductVo> getPage(EhsdPurchaseProductSelectDto dto);

    /**
     * ehsd采购产品表明细
     */
    EhsdPurchaseProductVo detail(Long id);

    /**
     * ehsd采购产品表新增
     */
    void add(EhsdPurchaseProductDto ehsdPurchaseProductDto);

    /**
     * ehsd采购产品表编辑
     */
    void edit(EhsdPurchaseProductDto ehsdPurchaseProductDto);

    /**
     * ehsd采购产品表删除
     */
    void delete(Long id);

    /**
     * 查询采购产品总金额，通过数据来源ID
     * @param contractIds
     * @return
     */
    List<EhsdPurchaseProductVo> getGroupSumAmount(List<Long> contractIds);

    /**
     * 根据合同ID查询采购产品列表
     * @param contractId
     * @return
     */
    List<EhsdPurchaseProductVo> getListByContractId(Long contractId);

}
