IotAlertMapper.java
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.ruoyi.system.mapper;
import com.ruoyi.system.domain.IotAlert;
import com.ruoyi.system.domain.IotDevice;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 设备告警Mapper接口
*
* @author kerwincui
* @date 2022-01-13
*/
@Repository
public interface IotAlertMapper
{
/**
* 查询设备告警
*
* @param alertId 设备告警主键
* @return 设备告警
*/
public IotAlert selectAlertByAlertId(Long alertId);
/**
* 查询设备告警列表
*
* @param alert 设备告警
* @return 设备告警集合
*/
public List<IotAlert> selectAlertList(IotAlert alert);
/**
* 新增设备告警
*
* @param alert 设备告警
* @return 结果
*/
public int insertAlert(IotAlert alert);
/**
* 修改设备告警
*
* @param alert 设备告警
* @return 结果
*/
public int updateAlert(IotAlert alert);
/**
* 删除设备告警
*
* @param alertId 设备告警主键
* @return 结果
*/
public int deleteAlertByAlertId(Long alertId);
/**
* 批量删除设备告警
*
* @param alertIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteAlertByAlertIds(Long[] alertIds);
}