mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 17:35:54 +08:00
分组中添加设备
This commit is contained in:
@@ -71,6 +71,14 @@ public interface IDeviceService
|
||||
*/
|
||||
public List<Device> selectDeviceList(Device device);
|
||||
|
||||
/**
|
||||
* 查询分组可添加设备分页列表
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<Device> selectDeviceListByGroup(Device device);
|
||||
|
||||
/**
|
||||
* 查询所有设备简短列表
|
||||
*
|
||||
|
||||
@@ -230,6 +230,20 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
return deviceMapper.selectDeviceList(device);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分组可添加设备分页列表(分组用户与设备用户匹配)
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备
|
||||
*/
|
||||
@Override
|
||||
public List<Device> selectDeviceListByGroup(Device device) {
|
||||
if(device.getUserId()==null || device.getUserId()==0){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return deviceMapper.selectDeviceListByGroup(device);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有设备简短列表
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user