package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.PaymentAdvanceApplyAttachment;
import com.jwipc.finance.mapper.PaymentAdvanceApplyAttachmentMapper;
import com.jwipc.finance.model.po.PaymentAdvanceApplyAttachmentPO;
import com.jwipc.finance.model.query.AccountStatementAttachmentQuery;
import com.jwipc.finance.model.query.PaymentAdvanceApplyAttachmentQuery;
import com.jwipc.finance.service.IPaymentAdvanceApplyAttachmentService;
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-21
 */
@Service
public class PaymentAdvanceApplyAttachmentServiceImpl extends ServiceImpl<PaymentAdvanceApplyAttachmentMapper, PaymentAdvanceApplyAttachment> implements IPaymentAdvanceApplyAttachmentService {

    @Override
    public List<PaymentAdvanceApplyAttachmentPO> queryByPage(Page<PaymentAdvanceApplyAttachment> dbPage, PaymentAdvanceApplyAttachmentQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
