package com.casic.missiles.modular.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.casic.missiles.core.datascope.DataScope;
import com.casic.missiles.modular.system.model.AlarmRule;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 报警规则表 Mapper 接口
 * </p>
 *
 * @author casic123
 * @since 2019-05-17
 */
public interface AlarmRuleMapper extends BaseMapper<AlarmRule> {

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