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);
|
}
|