package com.odcc.cpzidc.bis.service.impl;
|
|
import java.util.List;
|
import com.odcc.cpzidc.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.odcc.cpzidc.bis.mapper.IdcUseGreenMapper;
|
import com.odcc.cpzidc.bis.domain.IdcUseGreen;
|
import com.odcc.cpzidc.bis.service.IIdcUseGreenService;
|
|
/**
|
* 绿色运行指标信息Service业务层处理
|
*
|
* @author ruoyi
|
* @date 2024-10-10
|
*/
|
@Service
|
public class IdcUseGreenServiceImpl implements IIdcUseGreenService
|
{
|
@Autowired
|
private IdcUseGreenMapper idcUseGreenMapper;
|
|
/**
|
* 查询绿色运行指标信息
|
*
|
* @param id 绿色运行指标信息主键
|
* @return 绿色运行指标信息
|
*/
|
@Override
|
public IdcUseGreen selectIdcUseGreenById(Long id)
|
{
|
return idcUseGreenMapper.selectIdcUseGreenById(id);
|
}
|
|
/**
|
* 查询绿色运行指标信息列表
|
*
|
* @param idcUseGreen 绿色运行指标信息
|
* @return 绿色运行指标信息
|
*/
|
@Override
|
public List<IdcUseGreen> selectIdcUseGreenList(IdcUseGreen idcUseGreen)
|
{
|
return idcUseGreenMapper.selectIdcUseGreenList(idcUseGreen);
|
}
|
|
/**
|
* 新增绿色运行指标信息
|
*
|
* @param idcUseGreen 绿色运行指标信息
|
* @return 结果
|
*/
|
@Override
|
public int insertIdcUseGreen(IdcUseGreen idcUseGreen)
|
{
|
idcUseGreen.setCreateTime(DateUtils.getNowDate());
|
return idcUseGreenMapper.insertIdcUseGreen(idcUseGreen);
|
}
|
|
/**
|
* 修改绿色运行指标信息
|
*
|
* @param idcUseGreen 绿色运行指标信息
|
* @return 结果
|
*/
|
@Override
|
public int updateIdcUseGreen(IdcUseGreen idcUseGreen)
|
{
|
idcUseGreen.setUpdateTime(DateUtils.getNowDate());
|
return idcUseGreenMapper.updateIdcUseGreen(idcUseGreen);
|
}
|
|
/**
|
* 批量删除绿色运行指标信息
|
*
|
* @param ids 需要删除的绿色运行指标信息主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteIdcUseGreenByIds(Long[] ids)
|
{
|
return idcUseGreenMapper.deleteIdcUseGreenByIds(ids);
|
}
|
|
/**
|
* 删除绿色运行指标信息信息
|
*
|
* @param id 绿色运行指标信息主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteIdcUseGreenById(Long id)
|
{
|
return idcUseGreenMapper.deleteIdcUseGreenById(id);
|
}
|
}
|