hdy
2024-11-22 04f79eab65aec630b36ded8b329c4f2dd2eecd4e
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
97
98
package com.billion.main.sc.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.billion.common.utils.DateUtils;
import com.billion.main.sc.domain.ScCollectionParamConf;
import com.billion.main.sc.mapper.ScCollectionParamConfMapper;
import com.billion.main.sc.service.IScCollectionParamConfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * 参数采集配置Service业务层处理
 * 
 * @author HDY
 * @date 2024-11-21
 */
@Service
public class ScCollectionParamConfServiceImpl extends ServiceImpl<ScCollectionParamConfMapper, ScCollectionParamConf> implements IScCollectionParamConfService
{
    @Autowired
    private ScCollectionParamConfMapper scCollectionParamConfMapper;
 
    /**
     * 查询参数采集配置
     * 
     * @param id 参数采集配置主键
     * @return 参数采集配置
     */
    @Override
    public ScCollectionParamConf selectScCollectionParamConfById(Long id)
    {
        return scCollectionParamConfMapper.selectScCollectionParamConfById(id);
    }
 
    /**
     * 查询参数采集配置列表
     * 
     * @param scCollectionParamConf 参数采集配置
     * @return 参数采集配置
     */
    @Override
    public List<ScCollectionParamConf> selectScCollectionParamConfList(ScCollectionParamConf scCollectionParamConf)
    {
        return scCollectionParamConfMapper.selectScCollectionParamConfList(scCollectionParamConf);
    }
 
    /**
     * 新增参数采集配置
     * 
     * @param scCollectionParamConf 参数采集配置
     * @return 结果
     */
    @Override
    public int insertScCollectionParamConf(ScCollectionParamConf scCollectionParamConf)
    {
        scCollectionParamConf.setCreateTime(DateUtils.getNowDate());
        return scCollectionParamConfMapper.insertScCollectionParamConf(scCollectionParamConf);
    }
 
    /**
     * 修改参数采集配置
     * 
     * @param scCollectionParamConf 参数采集配置
     * @return 结果
     */
    @Override
    public int updateScCollectionParamConf(ScCollectionParamConf scCollectionParamConf)
    {
        scCollectionParamConf.setUpdateTime(DateUtils.getNowDate());
        return scCollectionParamConfMapper.updateScCollectionParamConf(scCollectionParamConf);
    }
 
    /**
     * 批量删除参数采集配置
     * 
     * @param ids 需要删除的参数采集配置主键
     * @return 结果
     */
    @Override
    public int deleteScCollectionParamConfByIds(Long[] ids)
    {
        return scCollectionParamConfMapper.deleteScCollectionParamConfByIds(ids);
    }
 
    /**
     * 删除参数采集配置信息
     * 
     * @param id 参数采集配置主键
     * @return 结果
     */
    @Override
    public int deleteScCollectionParamConfById(Long id)
    {
        return scCollectionParamConfMapper.deleteScCollectionParamConfById(id);
    }
}