提交 | 用户 | 时间
|
e57a89
|
1 |
package com.jcdm.main.em.equipmentStatus.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.em.equipmentStatus.mapper.EmEquipmentStatusMapper; |
|
8 |
import com.jcdm.main.em.equipmentStatus.domain.EmEquipmentStatus; |
|
9 |
import com.jcdm.main.em.equipmentStatus.service.IEmEquipmentStatusService; |
|
10 |
|
|
11 |
/** |
|
12 |
* 设备状态Service业务层处理 |
|
13 |
* |
|
14 |
* @author ruimin |
|
15 |
* @date 2023-12-27 |
|
16 |
*/ |
|
17 |
@Service |
|
18 |
public class EmEquipmentStatusServiceImpl implements IEmEquipmentStatusService |
|
19 |
{ |
|
20 |
@Autowired |
|
21 |
private EmEquipmentStatusMapper emEquipmentStatusMapper; |
|
22 |
|
|
23 |
/** |
|
24 |
* 查询设备状态 |
|
25 |
* |
|
26 |
* @param id 设备状态主键 |
|
27 |
* @return 设备状态 |
|
28 |
*/ |
|
29 |
@Override |
|
30 |
public EmEquipmentStatus selectEmEquipmentStatusById(Long id) |
|
31 |
{ |
|
32 |
return emEquipmentStatusMapper.selectEmEquipmentStatusById(id); |
|
33 |
} |
|
34 |
|
|
35 |
/** |
|
36 |
* 查询设备状态列表 |
|
37 |
* |
|
38 |
* @param emEquipmentStatus 设备状态 |
|
39 |
* @return 设备状态 |
|
40 |
*/ |
|
41 |
@Override |
|
42 |
public List<EmEquipmentStatus> selectEmEquipmentStatusList(EmEquipmentStatus emEquipmentStatus) |
|
43 |
{ |
|
44 |
return emEquipmentStatusMapper.selectEmEquipmentStatusList(emEquipmentStatus); |
|
45 |
} |
|
46 |
|
|
47 |
/** |
|
48 |
* 新增设备状态 |
|
49 |
* |
|
50 |
* @param emEquipmentStatus 设备状态 |
|
51 |
* @return 结果 |
|
52 |
*/ |
|
53 |
@Override |
|
54 |
public int insertEmEquipmentStatus(EmEquipmentStatus emEquipmentStatus) |
|
55 |
{ |
|
56 |
return emEquipmentStatusMapper.insertEmEquipmentStatus(emEquipmentStatus); |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* 修改设备状态 |
|
61 |
* |
|
62 |
* @param emEquipmentStatus 设备状态 |
|
63 |
* @return 结果 |
|
64 |
*/ |
|
65 |
@Override |
|
66 |
public int updateEmEquipmentStatus(EmEquipmentStatus emEquipmentStatus) |
|
67 |
{ |
|
68 |
emEquipmentStatus.setUpdateTime(DateUtils.getNowDate()); |
|
69 |
return emEquipmentStatusMapper.updateEmEquipmentStatus(emEquipmentStatus); |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* 批量删除设备状态 |
|
74 |
* |
|
75 |
* @param ids 需要删除的设备状态主键 |
|
76 |
* @return 结果 |
|
77 |
*/ |
|
78 |
@Override |
|
79 |
public int deleteEmEquipmentStatusByIds(Long[] ids) |
|
80 |
{ |
|
81 |
return emEquipmentStatusMapper.deleteEmEquipmentStatusByIds(ids); |
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* 删除设备状态信息 |
|
86 |
* |
|
87 |
* @param id 设备状态主键 |
|
88 |
* @return 结果 |
|
89 |
*/ |
|
90 |
@Override |
|
91 |
public int deleteEmEquipmentStatusById(Long id) |
|
92 |
{ |
|
93 |
return emEquipmentStatusMapper.deleteEmEquipmentStatusById(id); |
|
94 |
} |
|
95 |
} |