package org.jeecg.modules.database.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.database.entity.ExperimentRating;
import org.jeecg.modules.database.mapper.ExperimentRatingMapper;
import org.jeecg.modules.database.service.IExperimentRatingService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 试验评分
 * @Author: jeecg-boot
 * @Date: 2024-11-16
 * @Version: V1.0
 */
@Service
public class ExperimentRatingServiceImpl extends ServiceImpl<ExperimentRatingMapper, ExperimentRating> implements IExperimentRatingService {

    @Override
    public List<ExperimentRating> getByExperimentId(String experimentId) {
        List<ExperimentRating> list = list(new LambdaQueryWrapper<ExperimentRating>().eq(ExperimentRating::getExperimentId, experimentId));
        return list;
    }
}
