wujian
2024-02-22 3f9c539cc52e8c59e30b364674b21b7b4e790c20
提交 | 用户 | 时间
268beb 1 package com.jcdm.main.da.paramCollection.service.impl;
W 2
3f9c53 3 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
268beb 4 import com.jcdm.common.utils.DateUtils;
W 5 import com.jcdm.main.da.paramCollection.domain.DaParamCollection;
6 import com.jcdm.main.da.paramCollection.mapper.DaParamCollectionMapper;
7 import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService;
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 yyt
17  * @date 2023-12-13
18  */
19 @Service
3f9c53 20 public class DaParamCollectionServiceImpl extends ServiceImpl<DaParamCollectionMapper,DaParamCollection> implements IDaParamCollectionService
268beb 21 {
W 22     @Autowired
23     private DaParamCollectionMapper daParamCollectionMapper;
24
25     /**
26      * 查询设备产品过程参数采集
27      * 
28      * @param id 设备产品过程参数采集主键
29      * @return 设备产品过程参数采集
30      */
31     @Override
32     public DaParamCollection selectDaParamCollectionById(Long id)
33     {
34         return daParamCollectionMapper.selectDaParamCollectionById(id);
35     }
36
37     /**
38      * 查询设备产品过程参数采集列表
39      * 
40      * @param daParamCollection 设备产品过程参数采集
41      * @return 设备产品过程参数采集
42      */
43     @Override
44     public List<DaParamCollection> selectDaParamCollectionList(DaParamCollection daParamCollection)
45     {
46         return daParamCollectionMapper.selectDaParamCollectionList(daParamCollection);
47     }
48
49     /**
50      * 新增设备产品过程参数采集
51      * 
52      * @param daParamCollection 设备产品过程参数采集
53      * @return 结果
54      */
55     @Override
56     public int insertDaParamCollection(DaParamCollection daParamCollection)
57     {
58         daParamCollection.setCreateTime(DateUtils.getNowDate());
59         return daParamCollectionMapper.insertDaParamCollection(daParamCollection);
60     }
61
62     /**
63      * 修改设备产品过程参数采集
64      * 
65      * @param daParamCollection 设备产品过程参数采集
66      * @return 结果
67      */
68     @Override
69     public int updateDaParamCollection(DaParamCollection daParamCollection)
70     {
71         daParamCollection.setUpdateTime(DateUtils.getNowDate());
72         return daParamCollectionMapper.updateDaParamCollection(daParamCollection);
73     }
74
75     /**
76      * 批量删除设备产品过程参数采集
77      * 
78      * @param ids 需要删除的设备产品过程参数采集主键
79      * @return 结果
80      */
81     @Override
82     public int deleteDaParamCollectionByIds(Long[] ids)
83     {
84         return daParamCollectionMapper.deleteDaParamCollectionByIds(ids);
85     }
86
87     /**
88      * 删除设备产品过程参数采集信息
89      * 
90      * @param id 设备产品过程参数采集主键
91      * @return 结果
92      */
93     @Override
94     public int deleteDaParamCollectionById(Long id)
95     {
96         return daParamCollectionMapper.deleteDaParamCollectionById(id);
97     }
98 }