package com.jwipc.inquiry.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.inquiry.entity.PriceInfoAudit;
import com.jwipc.inquiry.mapper.PriceInfoAuditMapper;
import com.jwipc.inquiry.model.po.PriceInfoAuditPO;
import com.jwipc.inquiry.model.query.PriceInfoAuditQuery;
import com.jwipc.inquiry.service.IPriceInfoAuditService;
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-08
 */
@Service
public class PriceInfoAuditServiceImpl extends ServiceImpl<PriceInfoAuditMapper, PriceInfoAudit> implements IPriceInfoAuditService {

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