监测统计进行日期范围查询

This commit is contained in:
kerwincui
2022-05-20 21:54:42 +08:00
parent 1113ed0c50
commit 28ead10408
2 changed files with 3 additions and 9 deletions

View File

@@ -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")) {