package com.jwipc.tender.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.tender.model.po.ExpertManagePO;
import com.jwipc.tender.model.query.ExpertManageQuery;
import com.jwipc.tender.service.IExpertManageService;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.tender.entity.ExpertManage;
import com.jwipc.tender.mapper.ExpertManageMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 专家管理 服务实现类
 * </p>
 *
 * @author AL
 * @since 2024-02-27
 */
@Service
public class ExpertManageServiceImpl extends ServiceImpl<ExpertManageMapper, ExpertManage> implements IExpertManageService {
    @Override
    public List<ExpertManagePO> findPageByQuery(Page<ExpertManage> dbPage, ExpertManageQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
    @Override
    public ExpertManagePO getDataById(Long id) {
        return baseMapper.getDataById(id);
    }

}
