package com.jwipc.contract.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.contract.entity.ContractPayDetail;
import com.jwipc.contract.entity.ContractPayStage;
import com.jwipc.contract.model.po.AmountSumVO;
import com.jwipc.contract.model.po.ContractPayDetailsVo;
import com.jwipc.contract.model.query.ContractPayDetailsQuery;

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

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zx
 * @since 2024-03-12
 */
public interface IContractPayDetailService extends IService<ContractPayDetail> {

    List<ContractPayDetailsVo> detailLists(Page<ContractPayDetailsVo> page, ContractPayDetailsQuery payDetailsQuery);

    List<AmountSumVO> amountSum(String payStageIds,String contractIds, String payId);

    String getAmountPaid(Long contractId, Long payStageId);

}
