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