懒羊羊
2024-01-25 d3409e53d656dff668c12a335bcb6f367ca63fdb
提交 | 用户 | 时间
0e6717 1 package com.jcdm.main.da.collectionParamConf.service.impl;
2
3 import com.jcdm.common.utils.DateUtils;
d3409e 4 import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf;
5 import com.jcdm.main.da.collectionParamConf.mapper.DaCollectionParamConfMapper;
6 import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService;
0e6717 7 import org.springframework.beans.factory.annotation.Autowired;
8 import org.springframework.stereotype.Service;
d3409e 9
10 import java.util.List;
0e6717 11
12 /**
13  * 采集参数配置Service业务层处理
14  * 
15  * @author ruimin
16  * @date 2023-12-25
17  */
18 @Service
19 public class DaCollectionParamConfServiceImpl implements IDaCollectionParamConfService 
20 {
21     @Autowired
22     private DaCollectionParamConfMapper daCollectionParamConfMapper;
23
24     /**
25      * 查询采集参数配置
26      * 
27      * @param id 采集参数配置主键
28      * @return 采集参数配置
29      */
30     @Override
31     public DaCollectionParamConf selectDaCollectionParamConfById(Long id)
32     {
33         return daCollectionParamConfMapper.selectDaCollectionParamConfById(id);
34     }
35
36     /**
37      * 查询采集参数配置列表
38      * 
39      * @param daCollectionParamConf 采集参数配置
40      * @return 采集参数配置
41      */
42     @Override
43     public List<DaCollectionParamConf> selectDaCollectionParamConfList(DaCollectionParamConf daCollectionParamConf)
44     {
45         return daCollectionParamConfMapper.selectDaCollectionParamConfList(daCollectionParamConf);
46     }
47
48     /**
49      * 新增采集参数配置
50      * 
51      * @param daCollectionParamConf 采集参数配置
52      * @return 结果
53      */
54     @Override
55     public int insertDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf)
56     {
57         daCollectionParamConf.setCreateTime(DateUtils.getNowDate());
58         return daCollectionParamConfMapper.insertDaCollectionParamConf(daCollectionParamConf);
59     }
60
61     /**
62      * 修改采集参数配置
63      * 
64      * @param daCollectionParamConf 采集参数配置
65      * @return 结果
66      */
67     @Override
68     public int updateDaCollectionParamConf(DaCollectionParamConf daCollectionParamConf)
69     {
70         daCollectionParamConf.setUpdateTime(DateUtils.getNowDate());
71         return daCollectionParamConfMapper.updateDaCollectionParamConf(daCollectionParamConf);
72     }
73
74     /**
75      * 批量删除采集参数配置
76      * 
77      * @param ids 需要删除的采集参数配置主键
78      * @return 结果
79      */
80     @Override
81     public int deleteDaCollectionParamConfByIds(Long[] ids)
82     {
83         return daCollectionParamConfMapper.deleteDaCollectionParamConfByIds(ids);
84     }
85
86     /**
87      * 删除采集参数配置信息
88      * 
89      * @param id 采集参数配置主键
90      * @return 结果
91      */
92     @Override
93     public int deleteDaCollectionParamConfById(Long id)
94     {
95         return daCollectionParamConfMapper.deleteDaCollectionParamConfById(id);
96     }
97 }