中国算力平台算力登记系统2.0
yanzhaofeige
3 days ago 5cc82f45d73865489cc39e5ffbf521bf4279ec53
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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);
    }
}