BOM
hdy
2024-11-26 f47bd7409609995c7eebb81a0b92b6e4aff0bdbf
提交 | 用户 | 时间
04f79e 1 package com.billion.main.sc.service.impl;
H 2
3 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4 import com.billion.common.utils.DateUtils;
5 import com.billion.main.sc.domain.ScCollectionParamConf;
6 import com.billion.main.sc.mapper.ScCollectionParamConfMapper;
7 import com.billion.main.sc.service.IScCollectionParamConfService;
8 import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.stereotype.Service;
10
11 import java.util.List;
12
13 /**
14  * 参数采集配置Service业务层处理
15  * 
16  * @author HDY
17  * @date 2024-11-21
18  */
19 @Service
20 public class ScCollectionParamConfServiceImpl extends ServiceImpl<ScCollectionParamConfMapper, ScCollectionParamConf> implements IScCollectionParamConfService
21 {
22     @Autowired
23     private ScCollectionParamConfMapper scCollectionParamConfMapper;
24
25     /**
26      * 查询参数采集配置
27      * 
28      * @param id 参数采集配置主键
29      * @return 参数采集配置
30      */
31     @Override
32     public ScCollectionParamConf selectScCollectionParamConfById(Long id)
33     {
34         return scCollectionParamConfMapper.selectScCollectionParamConfById(id);
35     }
36
37     /**
38      * 查询参数采集配置列表
39      * 
40      * @param scCollectionParamConf 参数采集配置
41      * @return 参数采集配置
42      */
43     @Override
44     public List<ScCollectionParamConf> selectScCollectionParamConfList(ScCollectionParamConf scCollectionParamConf)
45     {
46         return scCollectionParamConfMapper.selectScCollectionParamConfList(scCollectionParamConf);
47     }
48
49     /**
50      * 新增参数采集配置
51      * 
52      * @param scCollectionParamConf 参数采集配置
53      * @return 结果
54      */
55     @Override
56     public int insertScCollectionParamConf(ScCollectionParamConf scCollectionParamConf)
57     {
58         scCollectionParamConf.setCreateTime(DateUtils.getNowDate());
59         return scCollectionParamConfMapper.insertScCollectionParamConf(scCollectionParamConf);
60     }
61
62     /**
63      * 修改参数采集配置
64      * 
65      * @param scCollectionParamConf 参数采集配置
66      * @return 结果
67      */
68     @Override
69     public int updateScCollectionParamConf(ScCollectionParamConf scCollectionParamConf)
70     {
71         scCollectionParamConf.setUpdateTime(DateUtils.getNowDate());
72         return scCollectionParamConfMapper.updateScCollectionParamConf(scCollectionParamConf);
73     }
74
75     /**
76      * 批量删除参数采集配置
77      * 
78      * @param ids 需要删除的参数采集配置主键
79      * @return 结果
80      */
81     @Override
82     public int deleteScCollectionParamConfByIds(Long[] ids)
83     {
84         return scCollectionParamConfMapper.deleteScCollectionParamConfByIds(ids);
85     }
86
87     /**
88      * 删除参数采集配置信息
89      * 
90      * @param id 参数采集配置主键
91      * @return 结果
92      */
93     @Override
94     public int deleteScCollectionParamConfById(Long id)
95     {
96         return scCollectionParamConfMapper.deleteScCollectionParamConfById(id);
97     }
98 }