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.IdcUseInfrastructureMapper; import com.odcc.cpzidc.bis.domain.IdcUseInfrastructure; import com.odcc.cpzidc.bis.service.IIdcUseInfrastructureService; /** * 基础设施信息Service业务层处理 * * @author ruoyi * @date 2024-10-10 */ @Service public class IdcUseInfrastructureServiceImpl implements IIdcUseInfrastructureService { @Autowired private IdcUseInfrastructureMapper idcUseInfrastructureMapper; /** * 查询基础设施信息 * * @param id 基础设施信息主键 * @return 基础设施信息 */ @Override public IdcUseInfrastructure selectIdcUseInfrastructureById(Long id) { return idcUseInfrastructureMapper.selectIdcUseInfrastructureById(id); } /** * 查询基础设施信息列表 * * @param idcUseInfrastructure 基础设施信息 * @return 基础设施信息 */ @Override public List selectIdcUseInfrastructureList(IdcUseInfrastructure idcUseInfrastructure) { return idcUseInfrastructureMapper.selectIdcUseInfrastructureList(idcUseInfrastructure); } /** * 新增基础设施信息 * * @param idcUseInfrastructure 基础设施信息 * @return 结果 */ @Override public int insertIdcUseInfrastructure(IdcUseInfrastructure idcUseInfrastructure) { idcUseInfrastructure.setCreateTime(DateUtils.getNowDate()); return idcUseInfrastructureMapper.insertIdcUseInfrastructure(idcUseInfrastructure); } /** * 修改基础设施信息 * * @param idcUseInfrastructure 基础设施信息 * @return 结果 */ @Override public int updateIdcUseInfrastructure(IdcUseInfrastructure idcUseInfrastructure) { idcUseInfrastructure.setUpdateTime(DateUtils.getNowDate()); return idcUseInfrastructureMapper.updateIdcUseInfrastructure(idcUseInfrastructure); } /** * 批量删除基础设施信息 * * @param ids 需要删除的基础设施信息主键 * @return 结果 */ @Override public int deleteIdcUseInfrastructureByIds(Long[] ids) { return idcUseInfrastructureMapper.deleteIdcUseInfrastructureByIds(ids); } /** * 删除基础设施信息信息 * * @param id 基础设施信息主键 * @return 结果 */ @Override public int deleteIdcUseInfrastructureById(Long id) { return idcUseInfrastructureMapper.deleteIdcUseInfrastructureById(id); } }