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