package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CompanyInvoicedApplyApprove;
import com.jwipc.finance.entity.CompanyAccountStatement;
import com.jwipc.finance.mapper.CompanyInvoicedApplyApproveMapper;
import com.jwipc.finance.model.po.CompanyInvoicedApplyApprovePO;
import com.jwipc.finance.model.query.CompanyIaApproveQuery;
import com.jwipc.finance.model.query.CostIaApproveQuery;
import com.jwipc.finance.service.ICompanyInvoicedApplyApproveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账模块-公司间销售开票申请审批记录表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-11-18
 */
@Service
public class CompanyInvoicedApplyApproveServiceImpl extends ServiceImpl<CompanyInvoicedApplyApproveMapper, CompanyInvoicedApplyApprove> implements ICompanyInvoicedApplyApproveService {
    @Override
    public List<CompanyInvoicedApplyApprovePO> selectDataByQuery(Page<CompanyAccountStatement> dbPage, CompanyIaApproveQuery query) {
        if (dbPage==null){
            return baseMapper.selectDataByQuery(query);
        }
        return baseMapper.selectDataByQuery(dbPage,query);
    }
}