package com.willalp.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.willalp.device.domain.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * deviceMapper接口
 *
 * @author willalp
 * @date 2021-11-23
 */
public interface DeviceMapper extends BaseMapper<Device> {
    /**
     * 查询device列表
     *
     * @param device device
     * @return device集合
     */
    List<Device> selectDeviceList(Device device);

    /**
     * 根据设备ID获取用户ID并组成用户信息列表
     *
     * @param deviceId
     * @return
     */
    String getDeviceBindingUsers(@Param("deviceId") String deviceId);
}
