Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
a8371b2b
Commit
a8371b2b
authored
May 24, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 17602
parent
d79b844d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+10
-10
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
a8371b2b
...
@@ -641,13 +641,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -641,13 +641,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
ext
.
put
(
"name"
,
equipmentSpecificIndex
.
getEquipmentSpecificName
());
ext
.
put
(
"name"
,
equipmentSpecificIndex
.
getEquipmentSpecificName
());
ext
.
put
(
"time"
,
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
).
format
(
new
Date
()));
ext
.
put
(
"time"
,
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
).
format
(
new
Date
()));
model
.
setExtras
(
ext
);
model
.
setExtras
(
ext
);
try
{
//
try {
Token
token
=
remoteSecurityService
.
getServerToken
();
//
Token token = remoteSecurityService.getServerToken();
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
//
systemctlFeign.create(token.getAppKey(), token.getProduct(), token.getToke(), model);
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
log
.
error
(
"调用平台出错!"
);
//
log.error("调用平台出错!");
}
//
}
log
.
info
(
String
.
format
(
"调用平台消息服务成功:%s"
,
JSON
.
toJSONString
(
model
)));
//
log.info(String.format("调用平台消息服务成功:%s", JSON.toJSONString(model)));
alarmFlag
=
true
;
alarmFlag
=
true
;
messageBody
.
put
(
"messageBody"
,
equipmentSpecificIndex
.
getEquipmentSpecificName
()
+
"-"
+
body
);
messageBody
.
put
(
"messageBody"
,
equipmentSpecificIndex
.
getEquipmentSpecificName
()
+
"-"
+
body
);
}
}
...
@@ -714,9 +714,9 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -714,9 +714,9 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
ext
.
put
(
"name"
,
(
String
)
map
.
get
(
"name"
));
ext
.
put
(
"name"
,
(
String
)
map
.
get
(
"name"
));
ext
.
put
(
"time"
,
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
).
format
(
new
Date
()));
ext
.
put
(
"time"
,
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
).
format
(
new
Date
()));
model
.
setExtras
(
ext
);
model
.
setExtras
(
ext
);
Token
token
=
remoteSecurityService
.
getServerToken
();
//
Token token = remoteSecurityService.getServerToken();
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
//
systemctlFeign.create(token.getAppKey(), token.getProduct(), token.getToke(), model);
log
.
info
(
String
.
format
(
"调用平台消息服务成功:%s"
,
JSON
.
toJSONString
(
model
)));
//
log.info(String.format("调用平台消息服务成功:%s", JSON.toJSONString(model)));
alarmFlag
=
true
;
alarmFlag
=
true
;
messageBody
.
put
(
"messageBody"
,
map
.
get
(
"name"
)
+
"-"
+
body
);
messageBody
.
put
(
"messageBody"
,
map
.
get
(
"name"
)
+
"-"
+
body
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment