package com.huyi.service.invoice.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huyi.service.invoice.mapper.OwnInvoiceMapper;
import com.huyi.service.invoice.service.OwnInvoiceService;
import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class OwnInvoiceServiceImpl implements OwnInvoiceService {
    @Autowired
    private OwnInvoiceMapper invoiceMapper;


    @Override
    public IPage<Map> selectInvoiceInfList(Map map, QueryRequest request) {
        Page page = new Page<>(request.getPageNum(), request.getPageSize());
        return invoiceMapper.selectInvoiceInfList(page,map);
    }

}
