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
553ae040
Commit
553ae040
authored
Nov 14, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预警监测bug修改
parent
6fbc95b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
IdxBizPvHealthIndexController.java
...e/jxiop/biz/controller/IdxBizPvHealthIndexController.java
+3
-3
PvWarningRecord.xml
...z/src/main/resources/mapper/tdengine2/PvWarningRecord.xml
+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/controller/IdxBizPvHealthIndexController.java
View file @
553ae040
...
@@ -338,7 +338,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
...
@@ -338,7 +338,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
startTimeTop
=
formatter
.
format
(
date
);
startTimeTop
=
formatter
.
format
(
date
);
List
<
PvHealthIndexDay
>
fanHealthIndexDays
=
pvHealthIndexDayMapper
.
selectData
(
healthLevel
,
area
,
equipmentName
,
subarray
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,(
current
-
1
)*
size
,
size
);
List
<
PvHealthIndexDay
>
fanHealthIndexDays
=
pvHealthIndexDayMapper
.
selectData
(
station
,
requiredType
,
indexAddress
,
healthLevel
,
area
,
analysisObjType
,
subarray
,
pointName
,
startTimeTop
,
endTimeTop
,
equipmentName
,(
current
-
1
)*
size
,
size
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
@@ -360,7 +360,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
...
@@ -360,7 +360,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
List
<
PvHealthIndexHour
>
fanHealthIndexHours
=
pvHealthIndexHourMapper
.
selectData
(
healthLevel
,
area
,
equipmentName
,
subarray
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,(
current
-
1
)*
size
,
size
);
List
<
PvHealthIndexHour
>
fanHealthIndexHours
=
pvHealthIndexHourMapper
.
selectData
(
station
,
analysisType
,
indexAddress
,
healthLevel
,
area
,
analysisObjType
,
subarray
,
pointName
,
startTimeTop
,
endTimeTop
,
equipmentName
,(
current
-
1
)*
size
,
size
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"value"
,
Double
.
parseDouble
(
df
.
format
(
fanHealthIndexHours
.
get
(
0
).
getHealthIndex
())));
map
.
put
(
"value"
,
Double
.
parseDouble
(
df
.
format
(
fanHealthIndexHours
.
get
(
0
).
getHealthIndex
())));
...
@@ -371,7 +371,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
...
@@ -371,7 +371,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
date
=
DateUtils
.
dateAddHours
(
date
,
-
8
);
date
=
DateUtils
.
dateAddHours
(
date
,
-
8
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
startTimeTop
=
formatter
.
format
(
date
);
startTimeTop
=
formatter
.
format
(
date
);
List
<
PvHealthIndexMoment
>
fanHealthIndexMoments
=
pvHealthIndexMomentMapper
.
selectData
(
healthLevel
,
area
,
equipmentName
,
subarray
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,(
current
-
1
)*
size
,
size
);
List
<
PvHealthIndexMoment
>
fanHealthIndexMoments
=
pvHealthIndexMomentMapper
.
selectData
(
station
,
analysisType
,
indexAddress
,
healthLevel
,
area
,
analysisObjType
,
subarray
,
pointName
,
startTimeTop
,
endTimeTop
,
equipmentName
,(
current
-
1
)*
size
,
size
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"value"
,
Double
.
parseDouble
(
df
.
format
(
fanHealthIndexMoments
.
get
(
0
).
getHealthIndex
())));
map
.
put
(
"value"
,
Double
.
parseDouble
(
df
.
format
(
fanHealthIndexMoments
.
get
(
0
).
getHealthIndex
())));
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/PvWarningRecord.xml
View file @
553ae040
...
@@ -152,7 +152,8 @@
...
@@ -152,7 +152,8 @@
<select
id=
"selectWarningPointTotal"
resultType=
"int"
>
<select
id=
"selectWarningPointTotal"
resultType=
"int"
>
SELECT
select count(1) from
(SELECT
a.station,
a.station,
a.warning_name,
a.warning_name,
a.content,
a.content,
...
@@ -178,7 +179,7 @@
...
@@ -178,7 +179,7 @@
point_name,
point_name,
rec_date ,
rec_date ,
content,
content,
warning_name
warning_name
) b
</select>
</select>
<select
id=
"selectEquipWarningTotal"
resultType=
"map"
>
<select
id=
"selectEquipWarningTotal"
resultType=
"map"
>
...
@@ -204,7 +205,7 @@
...
@@ -204,7 +205,7 @@
`z`.`warning_name` as `WARNING_NAME`,
`z`.`warning_name` as `WARNING_NAME`,
count( 1 ) as `num`
count( 1 ) as `num`
from
from
analysis_data.
fan
_warning_record z where
analysis_data.
pv
_warning_record z where
( `z`.`status` = 0 )
( `z`.`status` = 0 )
<if
test=
"STATION != null and STATION != '' "
>
<if
test=
"STATION != null and STATION != '' "
>
AND z.station = #{STATION}
AND z.station = #{STATION}
...
...
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