package com.casic.missiles.modular.alarm.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.casic.missiles.core.datascope.DataScope;
import com.casic.missiles.modular.system.dto.AlarmRuleDTO;
import com.casic.missiles.modular.system.model.AlarmRule;

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

/**
 * <p>
 * 报警规则表 服务类
 * </p>
 *
 * @author casic123
 * @since 2019-05-17
 */
public interface IAlarmRuleService extends IService<AlarmRule> {

    List<Map<String,Object>> ruleListViaParam(Page<Map<String, Object>> page, String keywords, String deviceType, DataScope dataScope);
    boolean updateRule( int id, float highValue, float lowValue);
    List<AlarmRuleDTO>  getNoAlarmDevice(DataScope dataScope);

}
