package com.jwipc.spe.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.spe.entity.SupAppraiseDimension;
import com.jwipc.spe.mapper.SupAppraiseDimensionMapper;
import com.jwipc.spe.model.po.SupAppraiseDimensionPO;
import com.jwipc.spe.model.po.SupAppraiseQuotaPO;
import com.jwipc.spe.model.query.SupAppraiseDimensionQuery;
import com.jwipc.spe.service.ISupAppraiseDimensionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 供应商绩效考核维度 服务实现类
 * </p>
 *
 * @author AL
 * @since 2024-02-28
 */
@Service
public class SupAppraiseDimensionServiceImpl extends ServiceImpl<SupAppraiseDimensionMapper, SupAppraiseDimension> implements ISupAppraiseDimensionService {
    @Override
    public List<SupAppraiseDimensionPO> findPageByQuery(Page<SupAppraiseDimension> dbPage, SupAppraiseDimensionQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
    @Override
    public SupAppraiseDimensionPO getDataById(Integer id) {
        return baseMapper.getDataById(id);
    }
}
