package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.AccountStatementApprove;
import com.jwipc.finance.mapper.AccountStatementApproveMapper;
import com.jwipc.finance.model.query.AsApproveQuery;
import com.jwipc.finance.service.IAccountStatementApproveService;
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 AccountStatementApproveServiceImpl extends ServiceImpl<AccountStatementApproveMapper, AccountStatementApprove> implements IAccountStatementApproveService {

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