93 lines
1.9 KiB
Java
93 lines
1.9 KiB
Java
package com.ruoyi.device.mapper;
|
|
|
|
import java.util.List;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.ruoyi.device.domain.AsDevice;
|
|
import com.ruoyi.device.domain.AsDeviceQuery;
|
|
import com.ruoyi.system.domain.SysStudent;
|
|
|
|
/**
|
|
* 设备列表Mapper接口
|
|
*
|
|
* @author 邱贞招
|
|
* @date 2023-11-11
|
|
*/
|
|
public interface AsDeviceMapper extends BaseMapper<AsDevice>
|
|
{
|
|
/**
|
|
* 查询设备详情
|
|
*
|
|
* @param deviceId 设备列表主键
|
|
* @return 设备列表
|
|
*/
|
|
public AsDevice selectAsDeviceByDeviceId(Long deviceId);
|
|
|
|
/**
|
|
* 查询设备列表
|
|
*
|
|
* @param mac 设备列表主键
|
|
* @return 设备列表
|
|
*/
|
|
public AsDevice selectAsDeviceByMac(String mac);
|
|
|
|
/**
|
|
* 查询设备列表列表
|
|
*
|
|
* @param asDevice 设备列表
|
|
* @return 设备列表集合
|
|
*/
|
|
public List<AsDevice> selectAsDeviceList(AsDevice asDevice);
|
|
|
|
/**
|
|
* 新增设备列表
|
|
*
|
|
* @param asDevice 设备列表
|
|
* @return 结果
|
|
*/
|
|
public int insertAsDevice(AsDevice asDevice);
|
|
|
|
/**
|
|
* 修改设备列表
|
|
*
|
|
* @param asDevice 设备列表
|
|
* @return 结果
|
|
*/
|
|
public int updateAsDevice(AsDevice asDevice);
|
|
|
|
|
|
/**
|
|
* 修改设备列表
|
|
*
|
|
* @param asDevice 设备列表
|
|
* @return 结果
|
|
*/
|
|
public int updateAsDeviceByMac(AsDevice asDevice);
|
|
|
|
/**
|
|
* 删除设备列表
|
|
*
|
|
* @param deviceId 设备列表主键
|
|
* @return 结果
|
|
*/
|
|
public int deleteAsDeviceByDeviceId(Long deviceId);
|
|
|
|
/**
|
|
* 批量删除设备列表
|
|
*
|
|
* @param deviceIds 需要删除的数据主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteAsDeviceByDeviceIds(Long[] deviceIds);
|
|
|
|
/**
|
|
* 根据mac号查询设备是否被绑定
|
|
*
|
|
* @param mac 设备mac
|
|
* @return 结果
|
|
*/
|
|
int isBandByMac(String mac);
|
|
|
|
int selectBindDeviceNumByUserId(Long userId);
|
|
}
|