package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CostAccountStatement;
import com.jwipc.finance.entity.CostInvoicedApplyApprove;
import com.jwipc.finance.mapper.CostInvoicedApplyApproveMapper;
import com.jwipc.finance.model.po.CostInvoicedApplyApprovePO;
import com.jwipc.finance.model.query.CostIaApproveQuery;
import com.jwipc.finance.service.ICostInvoicedApplyApproveService;
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-05
 */
@Service
public class CostInvoicedApplyApproveServiceImpl extends ServiceImpl<CostInvoicedApplyApproveMapper, CostInvoicedApplyApprove> implements ICostInvoicedApplyApproveService {

    @Override
    public List<CostInvoicedApplyApprovePO> selectDataByQuery(Page<CostAccountStatement> dbPage, CostIaApproveQuery query) {
        if (dbPage==null){
            return baseMapper.selectDataByQuery(query);
        }
        return baseMapper.selectDataByQuery(dbPage,query);
    }
}
