package com.dxhy.jxpt.baseService.ncpInvoice.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dxhy.api.model.ncp.ncpInvoice.TDxRecordInvoiceNcpVo;
import com.dxhy.api.model.invoice.TDxRecordInvoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @Description 农产品发票dao
* @Author wangruwei
* @Date 2023/9/21 16:20
**/
@Mapper
public interface NcpRecordInvoiceDao extends BaseMapper<TDxRecordInvoice> {

    /**
    * @Description 农产品销售发票列表合计
    * @Author wangruwei
    * @Date 2023/10/9 18:06
    **/
    List<TDxRecordInvoiceNcpVo> selectNcpXsInvoiceHj(Map<String, Object> pramsMap);
    /**
     * @Description 农产品销售发票列表
     * @Author wangruwei
     * @Date 2023/10/9 18:06
     **/
    List<TDxRecordInvoiceNcpVo> selectNcpXsInvoiceList(Map<String, Object> pramsMap);
    /**
    * @Description 通过uuid查找单条发票，关联农产品表
    * @Author wangruwei
    * @Date 2023/10/11 15:28
    **/
    TDxRecordInvoiceNcpVo selectNcpXsInvoiceByUuid(@Param("uuid") String uuid);

    List<TDxRecordInvoiceNcpVo> selectNcpXsInvoiceByUuids(@Param("uuids") List<String> uuidlist);

    /**
     * 查询底账表信息，可改变值返回
     **/
    TDxRecordInvoiceNcpVo selectRecordInvoiceByUuid(@Param("uuid")String uuid);
}
