package com.yeejoin.amos.boot.module.das.mapper.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.das.entity.mysql.FrontGatewayDevicePoints;
import org.apache.ibatis.annotations.Select;

import java.util.List;
public interface FrontGatewayDevicePointsMapper extends BaseMapper<FrontGatewayDevicePoints> {
    @Select("select distinct gateway_id from iot_front_gateway_device_points")
    List<String> getGatewayIds();
    @Select("select SEQUENCE_NBR,POINT_NAME,POINT_DATA_TYPE,POINT_ADDRESS,POINT_LOCATION,POINT_TYPE,DATA_TYPE from iot_front_gateway_device_points where gateway_id = #{gatewayId}")
    List<FrontGatewayDevicePoints> getFrontGatewayDevicePointsByGatewayId(String gatewayId);
}
