package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.AccountStatementAttachment;
import com.jwipc.finance.mapper.AccountStatementAttachmentMapper;
import com.jwipc.finance.model.po.AccountStatementAttachmentPO;
import com.jwipc.finance.model.query.AccountStatementAttachmentQuery;
import com.jwipc.finance.service.IAccountStatementAttachmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账单附件关系表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-10-16
 */
@Service
public class AccountStatementAttachmentServiceImpl extends ServiceImpl<AccountStatementAttachmentMapper, AccountStatementAttachment> implements IAccountStatementAttachmentService {

    @Override
    public List<AccountStatementAttachmentPO> queryByPage(Page<AccountStatementAttachment> dbPage, AccountStatementAttachmentQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
