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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.sensor.entity.AlarmPart;
import org.jeecg.modules.sensor.mapper.AlarmPartMapper;
import org.jeecg.modules.sensor.service.IAlarmPartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Description: alarm_part
 * @Author: jeecg-boot
 * @Date:   2024-05-17
 * @Version: V1.0
 */
@Service
public class AlarmPartServiceImpl extends ServiceImpl<AlarmPartMapper, AlarmPart> implements IAlarmPartService {

    @Autowired
    private AlarmPartMapper alarmPartMapper;


    @Override
    public AlarmPart getDataByIdAndName(String sensorId,String field){
        return alarmPartMapper.getDataByIdAndName(sensorId,field);
    }

    @Override
    public AlarmPart getCurrentData(String field){
        return alarmPartMapper.getCurrentData(field);
    }



}
