package com.jcdm.main.em.equipmentAlarm.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.jcdm.main.em.equipmentAlarm.domain.EmEquipmentAlarm;
|
import com.jcdm.main.em.equipmentAlarm.mapper.EmEquipmentAlarmMapper;
|
import com.jcdm.main.em.equipmentAlarm.service.IEmEquipmentAlarmService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
/**
|
* 设备报警Service业务层处理
|
*
|
* @author ruimin
|
* @date 2023-12-15
|
*/
|
@Service
|
public class EmEquipmentAlarmServiceImpl extends ServiceImpl<EmEquipmentAlarmMapper,EmEquipmentAlarm> implements IEmEquipmentAlarmService
|
{
|
@Autowired
|
private EmEquipmentAlarmMapper emEquipmentAlarmMapper;
|
|
/**
|
* 查询设备报警
|
*
|
* @param id 设备报警主键
|
* @return 设备报警
|
*/
|
@Override
|
public EmEquipmentAlarm selectEmEquipmentAlarmById(Long id)
|
{
|
return emEquipmentAlarmMapper.selectEmEquipmentAlarmById(id);
|
}
|
|
/**
|
* 查询设备报警列表
|
*
|
* @param emEquipmentAlarm 设备报警
|
* @return 设备报警
|
*/
|
@Override
|
public List<EmEquipmentAlarm> selectEmEquipmentAlarmList(EmEquipmentAlarm emEquipmentAlarm)
|
{
|
return emEquipmentAlarmMapper.selectEmEquipmentAlarmList(emEquipmentAlarm);
|
}
|
|
/**
|
* 新增设备报警
|
*
|
* @param emEquipmentAlarm 设备报警
|
* @return 结果
|
*/
|
@Override
|
public int insertEmEquipmentAlarm(EmEquipmentAlarm emEquipmentAlarm)
|
{
|
return emEquipmentAlarmMapper.insertEmEquipmentAlarm(emEquipmentAlarm);
|
}
|
|
/**
|
* 修改设备报警
|
*
|
* @param emEquipmentAlarm 设备报警
|
* @return 结果
|
*/
|
@Override
|
public int updateEmEquipmentAlarm(EmEquipmentAlarm emEquipmentAlarm)
|
{
|
return emEquipmentAlarmMapper.updateEmEquipmentAlarm(emEquipmentAlarm);
|
}
|
|
/**
|
* 批量删除设备报警
|
*
|
* @param ids 需要删除的设备报警主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmEquipmentAlarmByIds(Long[] ids)
|
{
|
return emEquipmentAlarmMapper.deleteEmEquipmentAlarmByIds(ids);
|
}
|
|
/**
|
* 删除设备报警信息
|
*
|
* @param id 设备报警主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmEquipmentAlarmById(Long id)
|
{
|
return emEquipmentAlarmMapper.deleteEmEquipmentAlarmById(id);
|
}
|
}
|