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