From 9a224d216652ef2d6ff2e0bd01fba69c86a3f277 Mon Sep 17 00:00:00 2001 From: yanzhaofeige <yanzhaofeige@qq.com> Date: Fri, 11 Oct 2024 11:28:55 +0800 Subject: [PATCH] 基础表单更新 --- cpzidc-bis/src/main/java/com/odcc/cpzidc/bis/service/impl/IdcUseInfrastructureServiceImpl.java | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 96 insertions(+), 0 deletions(-) diff --git a/cpzidc-bis/src/main/java/com/odcc/cpzidc/bis/service/impl/IdcUseInfrastructureServiceImpl.java b/cpzidc-bis/src/main/java/com/odcc/cpzidc/bis/service/impl/IdcUseInfrastructureServiceImpl.java new file mode 100644 index 0000000..83d761c --- /dev/null +++ b/cpzidc-bis/src/main/java/com/odcc/cpzidc/bis/service/impl/IdcUseInfrastructureServiceImpl.java @@ -0,0 +1,96 @@ +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<IdcUseInfrastructure> 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); + } +} -- Gitblit v1.9.3