Commit 85659d6d by fz

1.筛选触发条件

2.触发条件过滤掉手动触发
1 parent 885c1881
......@@ -15,4 +15,6 @@ public class Constants {
//时间触发条件key
public static final String CONDITION_TIME = "scene_condition_time";
//手动触发条件key
public static final String CONDITION_CLICK = "scene_condition_click";
}
......@@ -131,6 +131,7 @@ public class SceneService {
scenseDataList = new ArrayList<>();
}
if(!Constants.CONDITION_CLICK.equals(data.getParamKey()))
scenseDataList.add(data);
scenseDataMap.put(scenseId, scenseDataList);
});
......@@ -194,6 +195,7 @@ public class SceneService {
//触发时间(时分)与当前时间(时分)是否相同
return ELogic.getValueByCode(ELogic.EQUALS.getCode(),paramValue.getDate(),DateUtils.getDate(new Date(rangeBegintTime), "HH:mm"));
}
return false;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!