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
34602b20
Commit
34602b20
authored
Nov 02, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
464dc66b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AmosJxiopAnalyseApplication.java
...in/java/com/yeejoin/amos/AmosJxiopAnalyseApplication.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/AmosJxiopAnalyseApplication.java
View file @
34602b20
...
@@ -58,7 +58,7 @@ public class AmosJxiopAnalyseApplication {
...
@@ -58,7 +58,7 @@ public class AmosJxiopAnalyseApplication {
@Autowired
@Autowired
private
EmqKeeper
emqKeeper
;
private
EmqKeeper
emqKeeper
;
//本地是否执行健康指数算法开关
//本地是否执行健康指数算法开关
@Value
(
"${openHealth:
tru
e}"
)
@Value
(
"${openHealth:
fals
e}"
)
Boolean
openHealth
;
Boolean
openHealth
;
@Autowired
@Autowired
private
SyncESDataToTdengineMqttListener
syncESDataToTdengineMqttListener
;
private
SyncESDataToTdengineMqttListener
syncESDataToTdengineMqttListener
;
...
@@ -79,7 +79,7 @@ public class AmosJxiopAnalyseApplication {
...
@@ -79,7 +79,7 @@ public class AmosJxiopAnalyseApplication {
@Bean
@Bean
public
void
initMqtt
()
throws
Exception
{
public
void
initMqtt
()
throws
Exception
{
if
(
!
openHealth
)
{
if
(
openHealth
)
{
//订阅固化周期性数据成功的消息
//订阅固化周期性数据成功的消息
emqKeeper
.
subscript
(
"sync_esdata_to_tdengine_notice"
,
1
,
syncESDataToTdengineMqttListener
);
emqKeeper
.
subscript
(
"sync_esdata_to_tdengine_notice"
,
1
,
syncESDataToTdengineMqttListener
);
}
}
...
...
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