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
512778b1
Commit
512778b1
authored
Aug 17, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
a35b4bb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+4
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
512778b1
...
@@ -663,7 +663,7 @@ public class CommonServiceImpl {
...
@@ -663,7 +663,7 @@ public class CommonServiceImpl {
return
dateFormat
.
format
(
timeStr
);
return
dateFormat
.
format
(
timeStr
);
}
}
@Scheduled
(
cron
=
"0
0/10
* * * ?"
)
@Scheduled
(
cron
=
"0
/10 *
* * * ?"
)
private
void
healthWarningMinute
()
{
private
void
healthWarningMinute
()
{
List
<
IdxBizFanPointProcessVariableClassificationDto
>
data
=
idxBizFanPointProcessVariableClassificationMapper
.
getInfluxDBData
();
List
<
IdxBizFanPointProcessVariableClassificationDto
>
data
=
idxBizFanPointProcessVariableClassificationMapper
.
getInfluxDBData
();
Map
<
String
,
List
<
IdxBizFanPointProcessVariableClassificationDto
>>
maps
=
data
.
stream
().
collect
(
Collectors
.
groupingBy
(
IdxBizFanPointProcessVariableClassificationDto:
:
getGatewayId
));
Map
<
String
,
List
<
IdxBizFanPointProcessVariableClassificationDto
>>
maps
=
data
.
stream
().
collect
(
Collectors
.
groupingBy
(
IdxBizFanPointProcessVariableClassificationDto:
:
getGatewayId
));
...
@@ -731,10 +731,10 @@ public class CommonServiceImpl {
...
@@ -731,10 +731,10 @@ public class CommonServiceImpl {
if
(
idxBizUhef
.
getProcess1Min
()
<=
value1
&&
value1
<=
idxBizUhef
.
getProcess1Max
()
&&
if
(
idxBizUhef
.
getProcess1Min
()
<=
value1
&&
value1
<=
idxBizUhef
.
getProcess1Max
()
&&
idxBizUhef
.
getProcess2Min
()
<=
value2
&&
value2
<=
idxBizUhef
.
getPorcess2Max
()
&&
idxBizUhef
.
getProcess2Min
()
<=
value2
&&
value2
<=
idxBizUhef
.
getPorcess2Max
()
&&
idxBizUhef
.
getProcess3Min
()
<=
value3
&&
value3
<=
idxBizUhef
.
getProcess3Max
()){
idxBizUhef
.
getProcess3Min
()
<=
value3
&&
value3
<=
idxBizUhef
.
getProcess3Max
()){
map
.
put
(
"analysVariable"
,
value4
);
map
.
put
(
"analys
is
Variable"
,
value4
);
map
.
put
(
"stdDev"
,
idxBizUhef
.
getAnalysisStdDev
());
map
.
put
(
"stdDev"
,
idxBizUhef
.
getAnalysisStdDev
());
map
.
put
(
"centerValue"
,
idxBizUhef
.
getAnalysisCenterValue
());
map
.
put
(
"centerValue"
,
idxBizUhef
.
getAnalysisCenterValue
());
map
.
put
(
"analysVariableId"
,
idxBizUhef
.
getAnalysisPointId
());
map
.
put
(
"analys
is
VariableId"
,
idxBizUhef
.
getAnalysisPointId
());
resultMap
.
put
(
idxBizUhef
.
getAnalysisPointId
(),
map
);
resultMap
.
put
(
idxBizUhef
.
getAnalysisPointId
(),
map
);
}
}
}
}
...
@@ -743,6 +743,7 @@ public class CommonServiceImpl {
...
@@ -743,6 +743,7 @@ public class CommonServiceImpl {
logger
.
info
(
"------------------------------------------开始调用健康指数计算算法开始----------------------------------------"
);
logger
.
info
(
"------------------------------------------开始调用健康指数计算算法开始----------------------------------------"
);
HashMap
<
String
,
Object
>
realParams
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
realParams
=
new
HashMap
<>();
realParams
.
put
(
gkzxzjskey1
,
values
);
realParams
.
put
(
gkzxzjskey1
,
values
);
String
s
=
JSON
.
toJSONString
(
realParams
);
String
response
=
HttpUtil
.
createPost
(
baseUrl
+
jkzsjsurl
).
body
(
JSON
.
toJSONString
(
realParams
)).
execute
().
body
();
String
response
=
HttpUtil
.
createPost
(
baseUrl
+
jkzsjsurl
).
body
(
JSON
.
toJSONString
(
realParams
)).
execute
().
body
();
try
{
try
{
logger
.
info
(
"--------------------repsonse: "
+
response
);
logger
.
info
(
"--------------------repsonse: "
+
response
);
...
...
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