package com.jwipc.spe.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.spe.entity.SupAppraiseResultDetail;
import com.jwipc.spe.mapper.SupAppraiseResultDetailMapper;
import com.jwipc.spe.model.po.SupAppraiseResultDetailPO;
import com.jwipc.spe.service.ISupAppraiseResultDetailService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 供应商考核结果明细 服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-11
 */
@Service
public class SupAppraiseResultDetailServiceImpl
        extends ServiceImpl<SupAppraiseResultDetailMapper, SupAppraiseResultDetail>
        implements ISupAppraiseResultDetailService
{

    @Override
    public Object findVal(String calculationFormula, Map<String, Object> params) {
        return this.baseMapper.findVal(calculationFormula, params);
    }

    @Override
    public List<SupAppraiseResultDetailPO> findBySupplierId(Long planId) {
        return this.baseMapper.findBySupplierId(planId);
    }
}
