package com.ruoyi.ems.record.mapper;

import java.util.List;
import com.ruoyi.ems.record.domain.EmsRecordAlarmRule;

/**
 * 异常告警规则Mapper接口
 * 
 * @author Yinq
 * @date 2024-05-15
 */
public interface EmsRecordAlarmRuleMapper 
{
    /**
     * 查询异常告警规则
     * 
     * @param objId 异常告警规则主键
     * @return 异常告警规则
     */
    public EmsRecordAlarmRule selectEmsRecordAlarmRuleByObjId(Long objId);

    /**
     * 查询异常告警规则列表
     * 
     * @param emsRecordAlarmRule 异常告警规则
     * @return 异常告警规则集合
     */
    public List<EmsRecordAlarmRule> selectEmsRecordAlarmRuleList(EmsRecordAlarmRule emsRecordAlarmRule);

    /**
     * 新增异常告警规则
     * 
     * @param emsRecordAlarmRule 异常告警规则
     * @return 结果
     */
    public int insertEmsRecordAlarmRule(EmsRecordAlarmRule emsRecordAlarmRule);

    /**
     * 修改异常告警规则
     * 
     * @param emsRecordAlarmRule 异常告警规则
     * @return 结果
     */
    public int updateEmsRecordAlarmRule(EmsRecordAlarmRule emsRecordAlarmRule);

    /**
     * 删除异常告警规则
     * 
     * @param objId 异常告警规则主键
     * @return 结果
     */
    public int deleteEmsRecordAlarmRuleByObjId(Long objId);

    /**
     * 批量删除异常告警规则
     * 
     * @param objIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmsRecordAlarmRuleByObjIds(Long[] objIds);
}
