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.ExperimentReview;
import org.jeecg.modules.database.mapper.ExperimentReviewMapper;
import org.jeecg.modules.database.service.IExperimentReviewService;
import org.springframework.stereotype.Service;

/**
 * @Description: 试验评定
 * @Author: jeecg-boot
 * @Date: 2024-11-05
 * @Version: V1.0
 */
@Service
public class ExperimentReviewServiceImpl extends ServiceImpl<ExperimentReviewMapper, ExperimentReview> implements IExperimentReviewService {

    @Override
    public ExperimentReview getByExperimentId(String experimentId) {
        return getOne(new LambdaQueryWrapper<ExperimentReview>().eq(ExperimentReview::getExperimentId, experimentId), false);
    }
}
