package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CostAccountStatementApprove;
import com.jwipc.finance.mapper.CostAccountStatementApproveMapper;
import com.jwipc.finance.model.query.AsApproveQuery;
import com.jwipc.finance.service.ICostAccountStatementApproveService;
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-03
 */
@Service
public class CostAccountStatementApproveServiceImpl extends ServiceImpl<CostAccountStatementApproveMapper, CostAccountStatementApprove> implements ICostAccountStatementApproveService {

    @Override
    public List<CostAccountStatementApprove> findPageByQuery(Page<CostAccountStatementApprove> dbPage, AsApproveQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
