提交 | 用户 | 时间
|
475e40
|
1 |
package com.jcdm.main.da.testDeviceInterfaceTemp.service.impl; |
A |
2 |
|
|
3 |
import java.util.List; |
|
4 |
|
|
5 |
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
6 |
import com.jcdm.common.utils.DateUtils; |
|
7 |
import org.springframework.beans.factory.annotation.Autowired; |
|
8 |
import org.springframework.stereotype.Service; |
|
9 |
import com.jcdm.main.da.testDeviceInterfaceTemp.mapper.DaTestDeviceInterfaceTempMapper; |
|
10 |
import com.jcdm.main.da.testDeviceInterfaceTemp.domain.DaTestDeviceInterfaceTemp; |
|
11 |
import com.jcdm.main.da.testDeviceInterfaceTemp.service.IDaTestDeviceInterfaceTempService; |
|
12 |
|
|
13 |
/** |
|
14 |
* 测试设备接口数据备份Service业务层处理 |
|
15 |
* |
|
16 |
* @author Yi |
|
17 |
* @date 2024-07-03 |
|
18 |
*/ |
|
19 |
@Service |
|
20 |
public class DaTestDeviceInterfaceTempServiceImpl extends ServiceImpl<DaTestDeviceInterfaceTempMapper, DaTestDeviceInterfaceTemp> implements IDaTestDeviceInterfaceTempService |
|
21 |
{ |
|
22 |
@Autowired |
|
23 |
private DaTestDeviceInterfaceTempMapper daTestDeviceInterfaceTempMapper; |
|
24 |
|
|
25 |
/** |
|
26 |
* 查询测试设备接口数据备份 |
|
27 |
* |
|
28 |
* @param id 测试设备接口数据备份主键 |
|
29 |
* @return 测试设备接口数据备份 |
|
30 |
*/ |
|
31 |
@Override |
|
32 |
public DaTestDeviceInterfaceTemp selectDaTestDeviceInterfaceTempById(Long id) |
|
33 |
{ |
|
34 |
return daTestDeviceInterfaceTempMapper.selectDaTestDeviceInterfaceTempById(id); |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* 查询测试设备接口数据备份列表 |
|
39 |
* |
|
40 |
* @param daTestDeviceInterfaceTemp 测试设备接口数据备份 |
|
41 |
* @return 测试设备接口数据备份 |
|
42 |
*/ |
|
43 |
@Override |
|
44 |
public List<DaTestDeviceInterfaceTemp> selectDaTestDeviceInterfaceTempList(DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp) |
|
45 |
{ |
|
46 |
return daTestDeviceInterfaceTempMapper.selectDaTestDeviceInterfaceTempList(daTestDeviceInterfaceTemp); |
|
47 |
} |
|
48 |
|
|
49 |
/** |
|
50 |
* 新增测试设备接口数据备份 |
|
51 |
* |
|
52 |
* @param daTestDeviceInterfaceTemp 测试设备接口数据备份 |
|
53 |
* @return 结果 |
|
54 |
*/ |
|
55 |
@Override |
|
56 |
public int insertDaTestDeviceInterfaceTemp(DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp) |
|
57 |
{ |
|
58 |
daTestDeviceInterfaceTemp.setCreateTime(DateUtils.getNowDate()); |
|
59 |
return daTestDeviceInterfaceTempMapper.insertDaTestDeviceInterfaceTemp(daTestDeviceInterfaceTemp); |
|
60 |
} |
|
61 |
|
|
62 |
/** |
|
63 |
* 修改测试设备接口数据备份 |
|
64 |
* |
|
65 |
* @param daTestDeviceInterfaceTemp 测试设备接口数据备份 |
|
66 |
* @return 结果 |
|
67 |
*/ |
|
68 |
@Override |
|
69 |
public int updateDaTestDeviceInterfaceTemp(DaTestDeviceInterfaceTemp daTestDeviceInterfaceTemp) |
|
70 |
{ |
|
71 |
daTestDeviceInterfaceTemp.setUpdateTime(DateUtils.getNowDate()); |
|
72 |
return daTestDeviceInterfaceTempMapper.updateDaTestDeviceInterfaceTemp(daTestDeviceInterfaceTemp); |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* 批量删除测试设备接口数据备份 |
|
77 |
* |
|
78 |
* @param ids 需要删除的测试设备接口数据备份主键 |
|
79 |
* @return 结果 |
|
80 |
*/ |
|
81 |
@Override |
|
82 |
public int deleteDaTestDeviceInterfaceTempByIds(Long[] ids) |
|
83 |
{ |
|
84 |
return daTestDeviceInterfaceTempMapper.deleteDaTestDeviceInterfaceTempByIds(ids); |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* 删除测试设备接口数据备份信息 |
|
89 |
* |
|
90 |
* @param id 测试设备接口数据备份主键 |
|
91 |
* @return 结果 |
|
92 |
*/ |
|
93 |
@Override |
|
94 |
public int deleteDaTestDeviceInterfaceTempById(Long id) |
|
95 |
{ |
|
96 |
return daTestDeviceInterfaceTempMapper.deleteDaTestDeviceInterfaceTempById(id); |
|
97 |
} |
d8e6a5
|
98 |
|
A |
99 |
@Override |
|
100 |
public void deleteDaTestDeviceInterfaceTempByProductNum(String cellCode) { |
|
101 |
daTestDeviceInterfaceTempMapper.deleteDaTestDeviceInterfaceTempByProductNum(cellCode); |
|
102 |
} |
475e40
|
103 |
} |