查询已激活设备列表接口
This commit is contained in:
@ -339,6 +339,9 @@ public interface IDeviceService
|
||||
Map<String, Object> getvideourl(JiankongDeviceParam jiankongDeviceParam);
|
||||
|
||||
|
||||
List<Device> getDeviceActivationList();
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -3,6 +3,7 @@ package com.fastbee.iot.service.impl;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONArray;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.fastbee.common.constant.Constants;
|
||||
import com.fastbee.common.constant.ProductAuthConstant;
|
||||
import com.fastbee.common.core.device.DeviceAndProtocol;
|
||||
@ -1762,7 +1763,14 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<Device> getDeviceActivationList() {
|
||||
//TODO 按项目机构区分数据
|
||||
return new LambdaQueryChainWrapper<>(deviceMapper)
|
||||
.select(Device::getDeviceId,Device::getDeviceName,Device::getSerialNumber)
|
||||
.in(Device::getStatus, 3,4)
|
||||
.list();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user