wlzboy
1 天以前 6b29bd596f8b48485d3506bfba4a1e0ea6c7df99
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package com.ruoyi.system.mapper;
 
import java.util.Date;
import java.util.List;
import com.ruoyi.system.domain.VehicleAbnormalAlert;
import org.apache.ibatis.annotations.Param;
 
/**
 * 车辆异常告警Mapper接口
 * 
 * @author ruoyi
 */
public interface VehicleAbnormalAlertMapper {
    /**
     * 查询车辆异常告警
     * 
     * @param alertId 车辆异常告警主键
     * @return 车辆异常告警
     */
    public VehicleAbnormalAlert selectVehicleAbnormalAlertByAlertId(Long alertId);
 
    /**
     * 查询车辆异常告警列表
     * 
     * @param vehicleAbnormalAlert 车辆异常告警
     * @return 车辆异常告警集合
     */
    public List<VehicleAbnormalAlert> selectVehicleAbnormalAlertList(VehicleAbnormalAlert vehicleAbnormalAlert);
 
    /**
     * 新增车辆异常告警
     * 
     * @param vehicleAbnormalAlert 车辆异常告警
     * @return 结果
     */
    public int insertVehicleAbnormalAlert(VehicleAbnormalAlert vehicleAbnormalAlert);
 
    /**
     * 修改车辆异常告警
     * 
     * @param vehicleAbnormalAlert 车辆异常告警
     * @return 结果
     */
    public int updateVehicleAbnormalAlert(VehicleAbnormalAlert vehicleAbnormalAlert);
 
    /**
     * 删除车辆异常告警
     * 
     * @param alertId 车辆异常告警主键
     * @return 结果
     */
    public int deleteVehicleAbnormalAlertByAlertId(Long alertId);
 
    /**
     * 批量删除车辆异常告警
     * 
     * @param alertIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVehicleAbnormalAlertByAlertIds(Long[] alertIds);
 
    /**
     * 查询车辆当日告警次数
     * 
     * @param vehicleId 车辆ID
     * @param alertDate 告警日期
     * @return 告警次数
     */
    public int selectDailyAlertCount(@Param("vehicleId") Long vehicleId, @Param("alertDate") Date alertDate);
 
    /**
     * 查询车辆最后一次告警时间
     * 
     * @param vehicleId 车辆ID
     * @return 最后告警时间
     */
    public Date selectLastAlertTime(@Param("vehicleId") Long vehicleId);
 
    /**
     * 批量处理告警
     * 
     * @param alertIds 告警ID列表
     * @param handlerId 处理人ID
     * @param handlerName 处理人姓名
     * @param handleRemark 处理备注
     * @return 结果
     */
    public int batchHandleAlert(@Param("alertIds") Long[] alertIds, 
                                 @Param("handlerId") Long handlerId, 
                                 @Param("handlerName") String handlerName, 
                                 @Param("handleRemark") String handleRemark);
}