Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-rest-admin-job-archetype
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 85659d6d
authored
Apr 12, 2021
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.筛选触发条件
2.触发条件过滤掉手动触发
1 parent
885c1881
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/Common/Constants.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/service/SceneService.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/Common/Constants.java
View file @
85659d6
...
...
@@ -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"
;
}
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/service/SceneService.java
View file @
85659d6
...
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment