AlarmRuleLevelConfigMapper.java 876 字节
package com.skua.modules.alarmtmp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skua.modules.alarmtmp.entity.AlarmRuleLevelConfig;
import com.skua.modules.alarmtmp.entity.AlarmRuleLevelConfigTemplate;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface AlarmRuleLevelConfigMapper extends BaseMapper<AlarmRuleLevelConfig> {
    @Delete("delete from alarm_rule_level_config where alarm_rule_id=#{id}")
    void deleteByRuleId(@Param("id") String id);

    List<Map<String, Object>> queryUpLow(@Param("alarmIds") Set<String> alarmIds);

    void updAlarmUpLow(@Param("list") Map<String, Object> list);

    void updLevelInfo(@Param("alarmRuleLevelConfigTemplate") AlarmRuleLevelConfigTemplate alarmRuleLevelConfigTemplate);
}