package com.ruoyi.system.mapper;
|
|
import java.util.List;
|
import org.apache.ibatis.annotations.Param;
|
import com.ruoyi.system.domain.VehicleAlertConfig;
|
|
/**
|
* 车辆告警配置Mapper接口
|
*
|
* @author ruoyi
|
* @date 2026-01-12
|
*/
|
public interface VehicleAlertConfigMapper
|
{
|
/**
|
* 查询车辆告警配置
|
*
|
* @param configId 车辆告警配置主键
|
* @return 车辆告警配置
|
*/
|
public VehicleAlertConfig selectVehicleAlertConfigByConfigId(Long configId);
|
|
/**
|
* 查询车辆告警配置列表
|
*
|
* @param vehicleAlertConfig 车辆告警配置
|
* @return 车辆告警配置集合
|
*/
|
public List<VehicleAlertConfig> selectVehicleAlertConfigList(VehicleAlertConfig vehicleAlertConfig);
|
|
/**
|
* 查询车辆的配置(优先级:车辆 > 部门 > 全局)
|
*
|
* @param vehicleId 车辆ID
|
* @param deptId 部门ID
|
* @return 车辆告警配置
|
*/
|
public VehicleAlertConfig selectConfigByVehicle(@Param("vehicleId") Long vehicleId, @Param("deptId") Long deptId);
|
|
/**
|
* 新增车辆告警配置
|
*
|
* @param vehicleAlertConfig 车辆告警配置
|
* @return 结果
|
*/
|
public int insertVehicleAlertConfig(VehicleAlertConfig vehicleAlertConfig);
|
|
/**
|
* 修改车辆告警配置
|
*
|
* @param vehicleAlertConfig 车辆告警配置
|
* @return 结果
|
*/
|
public int updateVehicleAlertConfig(VehicleAlertConfig vehicleAlertConfig);
|
|
/**
|
* 删除车辆告警配置
|
*
|
* @param configId 车辆告警配置主键
|
* @return 结果
|
*/
|
public int deleteVehicleAlertConfigByConfigId(Long configId);
|
|
/**
|
* 批量删除车辆告警配置
|
*
|
* @param configIds 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteVehicleAlertConfigByConfigIds(Long[] configIds);
|
}
|