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

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.casic.missiles.modular.system.dto.BusConfigDTO;
import com.casic.missiles.core.datascope.DataScope;
import com.casic.missiles.modular.system.model.BusConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 设备配置表 Mapper 接口
 * </p>
 *
 * @author stylefeng123
 * @since 2019-05-16
 */
public interface BusConfigMapper extends BaseMapper<BusConfig> {

    /**
     * 获取配置信息
     */
    List<Map<String, Object>> getConfigList(@Param("page") Page<BusConfigDTO> page,
                                            @Param("keywords") String keywords,
                                            @Param("deptid") String deptid,
                                            @Param("sensorid") String sensorid,
                                            @Param("dataScope") DataScope dataScope);


    String getConcenCodeByDevId(@Param("devID") Long devID);
    String getWellDeepByDevId(@Param("devID") Long devID);

}
