mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 08:25:53 +08:00
监测统计进行日期范围查询
This commit is contained in:
@@ -318,7 +318,7 @@ public class ToolController extends BaseController {
|
||||
return;
|
||||
}
|
||||
String[] clientInfo = model.getClientid().split("&");
|
||||
String deviceNum = clientInfo[0];
|
||||
String deviceNum = clientInfo[1];
|
||||
Device device = deviceService.selectShortDeviceBySerialNumber(deviceNum);
|
||||
// 设备状态(1-未激活,2-禁用,3-在线,4-离线)
|
||||
if (model.getAction().equals("client_disconnected")) {
|
||||
@@ -326,7 +326,7 @@ public class ToolController extends BaseController {
|
||||
deviceService.updateDeviceStatusAndLocation(device, "");
|
||||
// 发布设备状态
|
||||
emqxService.publishStatus(device.getProductId(), device.getSerialNumber(), 4, device.getIsShadow());
|
||||
// 清空保留消息,上线后发布新的属性功能保留消息
|
||||
// 清空保留消息,上线后发布新的属性功能保留消息 TODO 发布的时候取消保留消息
|
||||
emqxService.publishProperty(device.getProductId(), device.getSerialNumber(), null);
|
||||
emqxService.publishFunction(device.getProductId(), device.getSerialNumber(), null);
|
||||
} else if (model.getAction().equals("client_connected")) {
|
||||
|
||||
Reference in New Issue
Block a user