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