package com.jcdm.main.em.equipmentStatus.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.jcdm.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.em.equipmentStatus.mapper.EmEquipmentStatusMapper;
|
import com.jcdm.main.em.equipmentStatus.domain.EmEquipmentStatus;
|
import com.jcdm.main.em.equipmentStatus.service.IEmEquipmentStatusService;
|
|
/**
|
* 设备状态Service业务层处理
|
*
|
* @author ruimin
|
* @date 2023-12-27
|
*/
|
@Service
|
public class EmEquipmentStatusServiceImpl extends ServiceImpl<EmEquipmentStatusMapper,EmEquipmentStatus> implements IEmEquipmentStatusService
|
{
|
@Autowired
|
private EmEquipmentStatusMapper emEquipmentStatusMapper;
|
|
/**
|
* 查询设备状态
|
*
|
* @param id 设备状态主键
|
* @return 设备状态
|
*/
|
@Override
|
public EmEquipmentStatus selectEmEquipmentStatusById(Long id)
|
{
|
return emEquipmentStatusMapper.selectEmEquipmentStatusById(id);
|
}
|
|
/**
|
* 查询设备状态列表
|
*
|
* @param emEquipmentStatus 设备状态
|
* @return 设备状态
|
*/
|
@Override
|
public List<EmEquipmentStatus> selectEmEquipmentStatusList(EmEquipmentStatus emEquipmentStatus)
|
{
|
return emEquipmentStatusMapper.selectEmEquipmentStatusList(emEquipmentStatus);
|
}
|
|
/**
|
* 新增设备状态
|
*
|
* @param emEquipmentStatus 设备状态
|
* @return 结果
|
*/
|
@Override
|
public int insertEmEquipmentStatus(EmEquipmentStatus emEquipmentStatus)
|
{
|
return emEquipmentStatusMapper.insertEmEquipmentStatus(emEquipmentStatus);
|
}
|
|
/**
|
* 修改设备状态
|
*
|
* @param emEquipmentStatus 设备状态
|
* @return 结果
|
*/
|
@Override
|
public int updateEmEquipmentStatus(EmEquipmentStatus emEquipmentStatus)
|
{
|
emEquipmentStatus.setUpdateTime(DateUtils.getNowDate());
|
return emEquipmentStatusMapper.updateEmEquipmentStatus(emEquipmentStatus);
|
}
|
|
/**
|
* 批量删除设备状态
|
*
|
* @param ids 需要删除的设备状态主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmEquipmentStatusByIds(Long[] ids)
|
{
|
return emEquipmentStatusMapper.deleteEmEquipmentStatusByIds(ids);
|
}
|
|
/**
|
* 删除设备状态信息
|
*
|
* @param id 设备状态主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmEquipmentStatusById(Long id)
|
{
|
return emEquipmentStatusMapper.deleteEmEquipmentStatusById(id);
|
}
|
}
|