package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.InvoicedApplyAttachment;
import com.jwipc.finance.mapper.InvoicedApplyAttachmentMapper;
import com.jwipc.finance.model.po.InvoicedApplyAttachmentPO;
import com.jwipc.finance.model.query.InvoicedApplyAttachmentQuery;
import com.jwipc.finance.service.IInvoicedApplyAttachmentService;
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 InvoicedApplyAttachmentServiceImpl extends ServiceImpl<InvoicedApplyAttachmentMapper, InvoicedApplyAttachment> implements IInvoicedApplyAttachmentService {

    @Override
    public List<InvoicedApplyAttachmentPO> queryByPage(Page<InvoicedApplyAttachment> dbPage, InvoicedApplyAttachmentQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
