package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CompanyAccountStatementApprove;
import com.jwipc.finance.entity.CompanyAccountStatementApprove;
import com.jwipc.finance.mapper.CompanyAccountStatementApproveMapper;
import com.jwipc.finance.model.query.AsApproveQuery;
import com.jwipc.finance.service.ICompanyAccountStatementApproveService;
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 CompanyAccountStatementApproveServiceImpl extends ServiceImpl<CompanyAccountStatementApproveMapper, CompanyAccountStatementApprove> implements ICompanyAccountStatementApproveService {
    @Override
    public List<CompanyAccountStatementApprove> findPageByQuery(Page<CompanyAccountStatementApprove> dbPage, AsApproveQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
