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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.casic.missiles.modular.system.model.AlarmLevel;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 123
 * @since 2019-10-15
 */
public interface AlarmLevelMapper extends BaseMapper<AlarmLevel> {
    Map<String,Object> selectByNameAndTenGroup(@Param("tenantId")Long tenantId, @Param("name")String name);
    List<AlarmLevel> selectByNameAndTenList(@Param("tenantId")Long tenantId, @Param("name")String name);
    AlarmLevel selectByNameAndTenAndLevel(@Param("tenantId")Long tenantId, @Param("name")String name, @Param("level") Integer level);
}
