package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.AccountStatement;
import com.jwipc.finance.entity.InvoicedApplyApprove;
import com.jwipc.finance.mapper.InvoicedApplyApproveMapper;
import com.jwipc.finance.model.po.InvoicedApplyApprovePO;
import com.jwipc.finance.model.query.IaApproveQuery;
import com.jwipc.finance.service.IInvoicedApplyApproveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账模块-开票申请审批记录表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-03-04
 */
@Service
public class InvoicedApplyApproveServiceImpl extends ServiceImpl<InvoicedApplyApproveMapper, InvoicedApplyApprove> implements IInvoicedApplyApproveService {

    @Override
    public List<InvoicedApplyApprovePO> selectDataByQuery(Page<AccountStatement> dbPage, IaApproveQuery query) {
        if (dbPage==null){
            return baseMapper.selectDataByQuery(query);
        }
        return baseMapper.selectDataByQuery(dbPage,query);
    }
}
