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
ee6dc2b6
Commit
ee6dc2b6
authored
Nov 01, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加状态常量。
2.增加本地是否触发健康指数计算的开关,默认关闭。
parent
53bda818
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
AmosJxiopAnalyseApplication.java
...in/java/com/yeejoin/amos/AmosJxiopAnalyseApplication.java
+7
-2
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+9
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/AmosJxiopAnalyseApplication.java
View file @
ee6dc2b6
...
...
@@ -9,6 +9,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
...
...
@@ -56,7 +57,9 @@ import java.net.InetAddress;
public
class
AmosJxiopAnalyseApplication
{
@Autowired
private
EmqKeeper
emqKeeper
;
//本地是否执行健康指数算法开关
@Value
(
"${openHealth:true}"
)
Boolean
openHealth
;
@Autowired
private
SyncESDataToTdengineMqttListener
syncESDataToTdengineMqttListener
;
...
...
@@ -76,7 +79,9 @@ public class AmosJxiopAnalyseApplication {
@Bean
public
void
initMqtt
()
throws
Exception
{
if
(!
openHealth
)
{
//订阅固化周期性数据成功的消息
emqKeeper
.
subscript
(
"sync_esdata_to_tdengine_notice"
,
1
,
syncESDataToTdengineMqttListener
);
emqKeeper
.
subscript
(
"sync_esdata_to_tdengine_notice"
,
1
,
syncESDataToTdengineMqttListener
);
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/constants/CommonConstans.java
View file @
ee6dc2b6
...
...
@@ -99,4 +99,13 @@ public class CommonConstans {
public
static
final
String
Twodecimalplaces
=
"%.2f"
;
public
static
final
String
Fourdecimalplaces
=
"%.4f"
;
public
static
final
String
QueryStringFrontMoudleNotKeyWord
=
"frontModule"
;
public
static
final
HashMap
<
String
,
String
>
waringPeriodS
=
new
HashMap
<
String
,
String
>()
{
{
put
(
"按时刻"
,
"按10分钟周期"
);
put
(
"按小时"
,
"按1小时周期"
);
put
(
"按天"
,
"按1天周期"
);
}
};
}
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