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.ExperimentDeviationEquipment;
import org.jeecg.modules.database.mapper.ExperimentDeviationEquipmentMapper;
import org.jeecg.modules.database.service.IExperimentDeviationEquipmentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 试验加偏设备信息
 * @Author: jeecg-boot
 * @Date: 2024-12-05
 * @Version: V1.0
 */
@Service
public class ExperimentDeviationEquipmentServiceImpl extends ServiceImpl<ExperimentDeviationEquipmentMapper, ExperimentDeviationEquipment>
        implements IExperimentDeviationEquipmentService {
    @Override
    public List<ExperimentDeviationEquipment> getByExperimentId(String experimentId) {
        return list(new LambdaQueryWrapper<ExperimentDeviationEquipment>().eq(ExperimentDeviationEquipment::getExperimentId, experimentId));
    }
}
