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 80a62ea5
authored
May 06, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]下发场景修改
1 parent
a678f530
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
View file @
80a62ea
...
@@ -328,6 +328,10 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
...
@@ -328,6 +328,10 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
private
void
issueSystemNotice
(
SmartScene
scene
,
String
msg
)
{
private
void
issueSystemNotice
(
SmartScene
scene
,
String
msg
)
{
String
title
=
"收到一条智能消息"
;
String
title
=
"收到一条智能消息"
;
Map
<
String
,
Object
>
map
=
sceneMapper
.
getBySourceAndUserId
(
scene
.
getId
());
Map
<
String
,
Object
>
map
=
sceneMapper
.
getBySourceAndUserId
(
scene
.
getId
());
if
(
map
==
null
){
log
.
info
(
"未查到场景id{}用户"
,
scene
.
getId
());
return
;
}
String
user_id
=
map
.
get
(
"user_id"
)
+
""
;
String
user_id
=
map
.
get
(
"user_id"
)
+
""
;
Map
<
String
,
String
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
String
>
paramMap
=
new
HashMap
<>();
Object
source
=
map
.
get
(
"source"
)
;
Object
source
=
map
.
get
(
"source"
)
;
...
@@ -384,6 +388,10 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
...
@@ -384,6 +388,10 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
String
content
=
""
;
String
content
=
""
;
String
title
=
"收到一条智能消息"
;
String
title
=
"收到一条智能消息"
;
Map
<
String
,
Object
>
map
=
sceneMapper
.
getBySourceAndUserId
(
scene
.
getId
());
Map
<
String
,
Object
>
map
=
sceneMapper
.
getBySourceAndUserId
(
scene
.
getId
());
if
(
map
==
null
){
log
.
info
(
"未查到场景id{}用户"
,
scene
.
getId
());
return
;
}
String
user_id
=
map
.
get
(
"user_id"
)
+
""
;
String
user_id
=
map
.
get
(
"user_id"
)
+
""
;
String
scene_name
=
map
.
get
(
"scene_name"
)
+
""
;
String
scene_name
=
map
.
get
(
"scene_name"
)
+
""
;
Object
source
=
map
.
get
(
"source"
);
Object
source
=
map
.
get
(
"source"
);
...
...
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