Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
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 23217dbf
authored
Mar 31, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]下发指令代码修改
1 parent
8dff1e95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
src/main/java/com/glsx/smart/pojo/ExecuteTaskVo.java
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
src/main/java/com/glsx/smart/pojo/ExecuteTaskVo.java
View file @
23217db
...
...
@@ -13,4 +13,5 @@ public class ExecuteTaskVo {
private
String
orderVal
;
private
String
valType
;
private
String
remoteId
;
private
String
value
;
}
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
View file @
23217db
...
...
@@ -187,7 +187,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
if
(
StringUtils
.
isBlank
(
remoteId
))
{
String
valueType
=
executeTaskVo
.
getValType
();
ordermap
.
put
(
"code"
,
executeTaskVo
.
getOrder
());
ordermap
.
put
(
"value"
,
revertType
(
valueType
,
executeTaskVo
.
getOrderVal
()));
ordermap
.
put
(
"value"
,
revertType
(
valueType
,
executeTaskVo
.
getOrderVal
()
==
null
?
executeTaskVo
.
getValue
():
executeTaskVo
.
getOrderVal
()
));
maps
.
add
(
ordermap
);
ordermaps
.
put
(
"commands"
,
maps
);
// 下发普通指令
...
...
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