中国算力平台算力登记系统2.0
yanzhaofeige
3 days ago 5cc82f45d73865489cc39e5ffbf521bf4279ec53
commit | author | age
5cc82f 1 package com.odcc.cpzidc.bis.service.impl;
Y 2
3 import java.util.List;
4 import com.odcc.cpzidc.common.utils.DateUtils;
5 import org.springframework.beans.factory.annotation.Autowired;
6 import org.springframework.stereotype.Service;
7 import com.odcc.cpzidc.bis.mapper.IdcUseBaseMapper;
8 import com.odcc.cpzidc.bis.domain.IdcUseBase;
9 import com.odcc.cpzidc.bis.service.IIdcUseBaseService;
10
11 /**
12  * 在用数据中心Service业务层处理
13  * 
14  * @author ruoyi
15  * @date 2024-10-10
16  */
17 @Service
18 public class IdcUseBaseServiceImpl implements IIdcUseBaseService 
19 {
20     @Autowired
21     private IdcUseBaseMapper idcUseBaseMapper;
22
23     /**
24      * 查询在用数据中心
25      * 
26      * @param id 在用数据中心主键
27      * @return 在用数据中心
28      */
29     @Override
30     public IdcUseBase selectIdcUseBaseById(Long id)
31     {
32         return idcUseBaseMapper.selectIdcUseBaseById(id);
33     }
34
35     /**
36      * 查询在用数据中心列表
37      * 
38      * @param idcUseBase 在用数据中心
39      * @return 在用数据中心
40      */
41     @Override
42     public List<IdcUseBase> selectIdcUseBaseList(IdcUseBase idcUseBase)
43     {
44         return idcUseBaseMapper.selectIdcUseBaseList(idcUseBase);
45     }
46
47     /**
48      * 新增在用数据中心
49      * 
50      * @param idcUseBase 在用数据中心
51      * @return 结果
52      */
53     @Override
54     public int insertIdcUseBase(IdcUseBase idcUseBase)
55     {
56         idcUseBase.setCreateTime(DateUtils.getNowDate());
57         return idcUseBaseMapper.insertIdcUseBase(idcUseBase);
58     }
59
60     /**
61      * 修改在用数据中心
62      * 
63      * @param idcUseBase 在用数据中心
64      * @return 结果
65      */
66     @Override
67     public int updateIdcUseBase(IdcUseBase idcUseBase)
68     {
69         idcUseBase.setUpdateTime(DateUtils.getNowDate());
70         return idcUseBaseMapper.updateIdcUseBase(idcUseBase);
71     }
72
73     /**
74      * 批量删除在用数据中心
75      * 
76      * @param ids 需要删除的在用数据中心主键
77      * @return 结果
78      */
79     @Override
80     public int deleteIdcUseBaseByIds(Long[] ids)
81     {
82         return idcUseBaseMapper.deleteIdcUseBaseByIds(ids);
83     }
84
85     /**
86      * 删除在用数据中心信息
87      * 
88      * @param id 在用数据中心主键
89      * @return 结果
90      */
91     @Override
92     public int deleteIdcUseBaseById(Long id)
93     {
94         return idcUseBaseMapper.deleteIdcUseBaseById(id);
95     }
96 }