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.ExperimentDeviationCondition;
import org.jeecg.modules.database.mapper.ExperimentDeviationConditionMapper;
import org.jeecg.modules.database.service.IExperimentDeviationConditionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 试验偏置条件信息
 * @Author: jeecg-boot
 * @Date: 2024-12-05
 * @Version: V1.0
 */
@Service
public class ExperimentDeviationConditionServiceImpl extends ServiceImpl<ExperimentDeviationConditionMapper, ExperimentDeviationCondition>
        implements IExperimentDeviationConditionService {
    @Override
    public List<ExperimentDeviationCondition> getByExperimentId(String experimentId) {
        return list(new LambdaQueryWrapper<ExperimentDeviationCondition>().eq(ExperimentDeviationCondition::getExperimentId, experimentId));
    }
}
