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
42093d33
Commit
42093d33
authored
Oct 27, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
667152af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+17
-5
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 @
42093d33
...
...
@@ -1474,9 +1474,6 @@ public class CommonServiceImpl {
if
(!
openHealth
){
return
;
}
Date
time
=
new
Date
();
Calendar
calendar
=
Calendar
.
getInstance
();
List
<
IdxBizFanPointProcessVariableClassificationDto
>
data
=
idxBizFanPointProcessVariableClassificationMapper
.
getInfluxDBData
();
...
...
@@ -1510,6 +1507,21 @@ public class CommonServiceImpl {
}
while
(
totle
==
0
){
try
{
SearchHits
<
ESEquipments
>
searchHits
=
elasticsearchTemplate
.
search
(
queryBuilder
.
build
(),
ESEquipments
.
class
);
for
(
SearchHit
searchHit
:
searchHits
.
getSearchHits
())
{
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
toJSON
(
searchHit
.
getContent
());
ESEquipments
eSAlertCalled
=
JSONObject
.
toJavaObject
(
jsonObject
,
ESEquipments
.
class
);
equipments
.
add
(
eSAlertCalled
);
}
totle
=
searchHits
.
getTotalHits
();
}
catch
(
Exception
e
)
{
// TODO: handle exception
}
}
for
(
IdxBizFanPointProcessVariableClassificationDto
datum
:
data
)
{
for
(
ESEquipments
equipment
:
equipments
)
{
if
(
equipment
.
getAddress
().
equals
(
datum
.
getIndexAddress
())
&&
equipment
.
getGatewayId
().
equals
(
datum
.
getGatewayId
()))
{
...
...
@@ -1621,7 +1633,7 @@ public class CommonServiceImpl {
DoubleColumn
.
create
(
"indexValue"
,
indexValue
),
DoubleColumn
.
create
(
"scoreValue"
,
scoreValue
));
System
.
out
.
println
(
healthData
.
print
());
try
{
healthData
.
write
().
csv
(
new
Date
().
getTime
()+
".csv"
);
healthData
.
write
().
csv
(
new
Date
().
getTime
()+
"
fj
.csv"
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
...
...
@@ -1831,7 +1843,7 @@ public class CommonServiceImpl {
DoubleColumn
.
create
(
"indexValue"
,
indexValue
),
DoubleColumn
.
create
(
"scoreValue"
,
scoreValue
));
System
.
out
.
println
(
healthData
.
print
());
try
{
healthData
.
write
().
csv
(
new
Date
().
getTime
()+
".csv"
);
healthData
.
write
().
csv
(
new
Date
().
getTime
()+
"
gf
.csv"
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
...
...
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