-
懒羊羊
2024-03-08 a0ad40459b9a43f2b7b747563f7796ac14acd2af
提交 | 用户 | 时间
e57a89 1 package com.jcdm.main.em.equipmentAlarm.service.impl;
2
3 import java.util.List;
4
5 import com.jcdm.main.em.equipmentAlarm.domain.EmEquipmentAlarm;
6 import com.jcdm.main.em.equipmentAlarm.mapper.EmEquipmentAlarmMapper;
7 import com.jcdm.main.em.equipmentAlarm.service.IEmEquipmentAlarmService;
8 import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.stereotype.Service;
10
11 /**
12  * 设备报警Service业务层处理
13  * 
14  * @author ruimin
15  * @date 2023-12-15
16  */
17 @Service
18 public class EmEquipmentAlarmServiceImpl implements IEmEquipmentAlarmService
19 {
20     @Autowired
21     private EmEquipmentAlarmMapper emEquipmentAlarmMapper;
22
23     /**
24      * 查询设备报警
25      * 
26      * @param id 设备报警主键
27      * @return 设备报警
28      */
29     @Override
30     public EmEquipmentAlarm selectEmEquipmentAlarmById(Long id)
31     {
32         return emEquipmentAlarmMapper.selectEmEquipmentAlarmById(id);
33     }
34
35     /**
36      * 查询设备报警列表
37      * 
38      * @param emEquipmentAlarm 设备报警
39      * @return 设备报警
40      */
41     @Override
42     public List<EmEquipmentAlarm> selectEmEquipmentAlarmList(EmEquipmentAlarm emEquipmentAlarm)
43     {
44         return emEquipmentAlarmMapper.selectEmEquipmentAlarmList(emEquipmentAlarm);
45     }
46
47     /**
48      * 新增设备报警
49      * 
50      * @param emEquipmentAlarm 设备报警
51      * @return 结果
52      */
53     @Override
54     public int insertEmEquipmentAlarm(EmEquipmentAlarm emEquipmentAlarm)
55     {
56         return emEquipmentAlarmMapper.insertEmEquipmentAlarm(emEquipmentAlarm);
57     }
58
59     /**
60      * 修改设备报警
61      * 
62      * @param emEquipmentAlarm 设备报警
63      * @return 结果
64      */
65     @Override
66     public int updateEmEquipmentAlarm(EmEquipmentAlarm emEquipmentAlarm)
67     {
68         return emEquipmentAlarmMapper.updateEmEquipmentAlarm(emEquipmentAlarm);
69     }
70
71     /**
72      * 批量删除设备报警
73      * 
74      * @param ids 需要删除的设备报警主键
75      * @return 结果
76      */
77     @Override
78     public int deleteEmEquipmentAlarmByIds(Long[] ids)
79     {
80         return emEquipmentAlarmMapper.deleteEmEquipmentAlarmByIds(ids);
81     }
82
83     /**
84      * 删除设备报警信息
85      * 
86      * @param id 设备报警主键
87      * @return 结果
88      */
89     @Override
90     public int deleteEmEquipmentAlarmById(Long id)
91     {
92         return emEquipmentAlarmMapper.deleteEmEquipmentAlarmById(id);
93     }
94 }