提交修改
This commit is contained in:
@@ -91,9 +91,10 @@ public class DeviceStatusConsumer {
|
||||
if (!containsKey && isOnline) {
|
||||
bo.setStatus(DeviceStatus.OFFLINE);
|
||||
}
|
||||
// 判断下 项目id
|
||||
// 判断下 项目机构tStatus().getDescription().equals("离线")){
|
||||
if(bo.getStatus().getDescription().equals("离线")){
|
||||
if (device.getGroupId().equals(0L) || device.getGroupId() == null) {
|
||||
// if (device.getGroupId().equals(0L) || device.getGroupId() == null) {
|
||||
if (device.getAgenciesId() == null) {
|
||||
//设置删除状态 todo
|
||||
device.setDelFlag("2");
|
||||
}
|
||||
|
||||
@@ -50,7 +50,8 @@ public class DeviceOtherMsgHandler {
|
||||
if (bo.getTopicName().startsWith(TopicType.PROPERTY_XINDA_DEV.getTopicSuffix()) || bo.getTopicName().startsWith(TopicType.FUNCTION_XINDA_DOWN.getTopicSuffix())) {
|
||||
name = topicsUtils.parseNewTopicName(bo.getTopicName());
|
||||
}else{
|
||||
name = topicsUtils.parseTopicName(bo.getTopicName());
|
||||
return;
|
||||
// name = topicsUtils.parseTopicName(bo.getTopicName());
|
||||
}
|
||||
if (StringUtils.isEmpty(name) || name.endsWith(TopicType.FUNCTION_GET.getTopicSuffix()) || name.startsWith(TopicType.FUNCTION_XINDA_DOWN.getTopicSuffix()) ) return;
|
||||
ReportDataBo data = this.buildReportData(bo);
|
||||
|
||||
@@ -84,6 +84,7 @@ public class RuleEngineHandler implements IRuleEngine {
|
||||
for(Script script : list) {
|
||||
requestId = requestId + "/" + script.getScriptId();
|
||||
}
|
||||
// String requestId = "scene/" + scene.getChainName();
|
||||
flowExecutor.execute2FutureWithRid(scene.getChainName(), null, requestId, context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user