package com.jwipc.finance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.CostMatching;
import com.jwipc.finance.mapper.CostMatchingMapper;
import com.jwipc.finance.model.po.CostMatchingPO;
import com.jwipc.finance.model.query.CostMatchingQuery;
import com.jwipc.finance.service.ICostMatchingService;
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-28
 */
@Service
public class CostMatchingServiceImpl extends ServiceImpl<CostMatchingMapper, CostMatching> implements ICostMatchingService {

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