package com.ruoyi.sales.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.sales.dto.InvoiceLedgerDto;
|
import com.ruoyi.sales.dto.ReceiptPaymentDto;
|
import com.ruoyi.sales.pojo.ReceiptPayment;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.math.BigDecimal;
|
|
public interface ReceiptPaymentMapper extends BaseMapper<ReceiptPayment> {
|
|
IPage<ReceiptPaymentDto> receiptPaymentListPage(Page page, @Param("receiptPaymentDto") ReceiptPaymentDto receiptPaymentDto);
|
|
ReceiptPaymentDto receiptPaymentInfo(Integer id);
|
|
/**
|
* 查询已经绑定发票的开票台账
|
* @param page
|
* @param receiptPaymentDto
|
* @return
|
*/
|
IPage<ReceiptPaymentDto> bindInvoiceNoRegPage(Page page, ReceiptPaymentDto receiptPaymentDto);
|
|
/**
|
* 开票台账详情
|
* @param id
|
* @return
|
*/
|
InvoiceLedgerDto invoiceInfo(Integer id);
|
|
/**
|
* 计算前多少条数据回款金额综合
|
* @param customerId
|
* @param total
|
* @return
|
*/
|
BigDecimal getReceiptAmount(@Param("customerId") Integer customerId, @Param("total") long total);
|
|
}
|