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.ExperimentLog;
import org.jeecg.modules.database.mapper.ExperimentLogMapper;
import org.jeecg.modules.database.service.IExperimentLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 试验日志
 * @Author: jeecg-boot
 * @Date: 2024-08-30
 * @Version: V1.0
 */
@Service
public class ExperimentLogServiceImpl extends ServiceImpl<ExperimentLogMapper, ExperimentLog> implements IExperimentLogService {

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