package com.jcdm.main.em.equipmentType.service.impl;
|
|
import java.util.List;
|
import com.jcdm.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.em.equipmentType.mapper.EmEquipmentTypeMapper;
|
import com.jcdm.main.em.equipmentType.domain.EmEquipmentType;
|
import com.jcdm.main.em.equipmentType.service.IEmEquipmentTypeService;
|
|
/**
|
* 设备类型Service业务层处理
|
*
|
* @author ruimin
|
* @date 2023-12-26
|
*/
|
@Service
|
public class EmEquipmentTypeServiceImpl implements IEmEquipmentTypeService
|
{
|
@Autowired
|
private EmEquipmentTypeMapper emEquipmentTypeMapper;
|
|
/**
|
* 查询设备类型
|
*
|
* @param id 设备类型主键
|
* @return 设备类型
|
*/
|
@Override
|
public EmEquipmentType selectEmEquipmentTypeById(Long id)
|
{
|
return emEquipmentTypeMapper.selectEmEquipmentTypeById(id);
|
}
|
|
/**
|
* 查询设备类型列表
|
*
|
* @param emEquipmentType 设备类型
|
* @return 设备类型
|
*/
|
@Override
|
public List<EmEquipmentType> selectEmEquipmentTypeList(EmEquipmentType emEquipmentType)
|
{
|
return emEquipmentTypeMapper.selectEmEquipmentTypeList(emEquipmentType);
|
}
|
|
/**
|
* 新增设备类型
|
*
|
* @param emEquipmentType 设备类型
|
* @return 结果
|
*/
|
@Override
|
public int insertEmEquipmentType(EmEquipmentType emEquipmentType)
|
{
|
emEquipmentType.setCreateTime(DateUtils.getNowDate());
|
return emEquipmentTypeMapper.insertEmEquipmentType(emEquipmentType);
|
}
|
|
/**
|
* 修改设备类型
|
*
|
* @param emEquipmentType 设备类型
|
* @return 结果
|
*/
|
@Override
|
public int updateEmEquipmentType(EmEquipmentType emEquipmentType)
|
{
|
emEquipmentType.setUpdateTime(DateUtils.getNowDate());
|
return emEquipmentTypeMapper.updateEmEquipmentType(emEquipmentType);
|
}
|
|
/**
|
* 批量删除设备类型
|
*
|
* @param ids 需要删除的设备类型主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmEquipmentTypeByIds(Long[] ids)
|
{
|
return emEquipmentTypeMapper.deleteEmEquipmentTypeByIds(ids);
|
}
|
|
/**
|
* 删除设备类型信息
|
*
|
* @param id 设备类型主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmEquipmentTypeById(Long id)
|
{
|
return emEquipmentTypeMapper.deleteEmEquipmentTypeById(id);
|
}
|
}
|