中国算力平台算力登记系统2.0
yanzhaofeige
5 days ago 37f8463032c06236bfd098133c31cda51217b00f
commit | author | age
1d2509 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.IdcTelCodeMapper;
8 import com.odcc.cpzidc.bis.domain.IdcTelCode;
9 import com.odcc.cpzidc.bis.service.IIdcTelCodeService;
10
11 /**
12  * 电话区号Service业务层处理
13  * 
14  * @author ruoyi
15  * @date 2024-10-09
16  */
17 @Service
18 public class IdcTelCodeServiceImpl implements IIdcTelCodeService 
19 {
20     @Autowired
21     private IdcTelCodeMapper idcTelCodeMapper;
22
23     /**
24      * 查询电话区号
25      * 
26      * @param id 电话区号主键
27      * @return 电话区号
28      */
29     @Override
30     public IdcTelCode selectIdcTelCodeById(Long id)
31     {
32         return idcTelCodeMapper.selectIdcTelCodeById(id);
33     }
34
35     /**
36      * 查询电话区号列表
37      * 
38      * @param idcTelCode 电话区号
39      * @return 电话区号
40      */
41     @Override
42     public List<IdcTelCode> selectIdcTelCodeList(IdcTelCode idcTelCode)
43     {
44         return idcTelCodeMapper.selectIdcTelCodeList(idcTelCode);
45     }
46
47     /**
48      * 新增电话区号
49      * 
50      * @param idcTelCode 电话区号
51      * @return 结果
52      */
53     @Override
54     public int insertIdcTelCode(IdcTelCode idcTelCode)
55     {
56         idcTelCode.setCreateTime(DateUtils.getNowDate());
57         return idcTelCodeMapper.insertIdcTelCode(idcTelCode);
58     }
59
60     /**
61      * 修改电话区号
62      * 
63      * @param idcTelCode 电话区号
64      * @return 结果
65      */
66     @Override
67     public int updateIdcTelCode(IdcTelCode idcTelCode)
68     {
69         idcTelCode.setUpdateTime(DateUtils.getNowDate());
70         return idcTelCodeMapper.updateIdcTelCode(idcTelCode);
71     }
72
73     /**
74      * 批量删除电话区号
75      * 
76      * @param ids 需要删除的电话区号主键
77      * @return 结果
78      */
79     @Override
80     public int deleteIdcTelCodeByIds(Long[] ids)
81     {
82         return idcTelCodeMapper.deleteIdcTelCodeByIds(ids);
83     }
84
85     /**
86      * 删除电话区号信息
87      * 
88      * @param id 电话区号主键
89      * @return 结果
90      */
91     @Override
92     public int deleteIdcTelCodeById(Long id)
93     {
94         return idcTelCodeMapper.deleteIdcTelCodeById(id);
95     }
96 }