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
6e5eeb37
Commit
6e5eeb37
authored
Nov 10, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 td
parent
b2eadd7c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+4
-4
IdxBizFanHealthIndexMapper.xml
...n/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
+1
-0
FanHealthIndex.xml
...iz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TDBigScreenAnalyseController.java
View file @
6e5eeb37
...
...
@@ -369,7 +369,7 @@ public class TDBigScreenAnalyseController extends BaseController {
stationCode
=
stationBasic
.
getFanGatewayId
();
}
List
<
Map
<
String
,
Object
>>
list
=
fanHealthIndexMapper
.
equipWarningRadarMapByTd
(
stationCode
);
Map
<
String
,
Integer
>
warningNumMap
=
list
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
.
get
(
"warning
N
ame"
).
toString
(),
t
->
Integer
.
parseInt
(
t
.
get
(
"num"
).
toString
())));
Map
<
String
,
Integer
>
warningNumMap
=
list
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
.
get
(
"warning
n
ame"
).
toString
(),
t
->
Integer
.
parseInt
(
t
.
get
(
"num"
).
toString
())));
List
<
String
>
warningList
=
Arrays
.
asList
(
"危险"
,
"注意"
,
"警告"
);
List
<
Integer
>
data
=
new
ArrayList
<>();
...
...
@@ -529,7 +529,7 @@ public class TDBigScreenAnalyseController extends BaseController {
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
// List<Map<String, Object>> healthListInfo = idxBizFanHealthIndexMapper.getHealthInfoBySubSystem(subSystem, stationBasic.getFanGatewayId());
List
<
Map
<
String
,
Object
>>
healthListInfo
=
fanHealthIndexMapper
.
getWarningInfoBySubSystemTd
(
subSystem
,
stationBasic
.
getFanGatewayId
());
Map
<
Object
,
String
>
equipmentHealthIndexMap
=
healthListInfo
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
.
get
(
"point
Name"
),
t
->
t
.
get
(
"warningN
ame"
).
toString
()));
Map
<
Object
,
String
>
equipmentHealthIndexMap
=
healthListInfo
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
.
get
(
"point
name"
),
t
->
t
.
get
(
"warningn
ame"
).
toString
()));
List
<
Map
<
String
,
Object
>>
pointNameList
=
idxBizFanHealthIndexMapper
.
getPointNameListBySumSystem
(
stationBasic
.
getFanGatewayId
(),
subSystem
);
pointNameList
.
forEach
(
item
->
{
String
warningName
=
equipmentHealthIndexMap
.
getOrDefault
(
item
.
get
(
"pointName"
),
"安全"
);
...
...
@@ -682,11 +682,11 @@ public class TDBigScreenAnalyseController extends BaseController {
resultListData
.
forEach
(
item
->
{
String
date
=
""
;
try
{
date
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateParse
(
item
.
get
(
"rec
_
date"
).
toString
(),
DateUtils
.
DATE_TIME_PATTERN
),
"MM-dd HH:mm:ss"
);
date
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateParse
(
item
.
get
(
"recdate"
).
toString
(),
DateUtils
.
DATE_TIME_PATTERN
),
"MM-dd HH:mm:ss"
);
}
catch
(
ParseException
e
)
{
}
time
.
add
(
date
);
String
value
=
CharSequenceUtil
.
isEmpty
(
item
.
get
(
"health
Index"
).
toString
().
replace
(
".0"
,
""
))
?
"100"
:
item
.
get
(
"healthI
ndex"
).
toString
().
replace
(
".0"
,
""
);
String
value
=
CharSequenceUtil
.
isEmpty
(
item
.
get
(
"health
index"
).
toString
().
replace
(
".0"
,
""
))
?
"100"
:
item
.
get
(
"healthi
ndex"
).
toString
().
replace
(
".0"
,
""
);
valueList
.
add
(
value
);
});
List
<
Map
<
String
,
Object
>>
arrayList
=
new
ArrayList
<>();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanHealthIndexMapper.xml
View file @
6e5eeb37
...
...
@@ -471,6 +471,7 @@
AND GATEWAY_ID = #{gatewayId}
</if>
</where>
group by subSystem
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
View file @
6e5eeb37
...
...
@@ -303,7 +303,7 @@
<select
id=
"getInfoListByTableNameTs"
resultType=
"java.util.Map"
>
SELECT
*
,
rec_date as recDate
,
CEIL(health_index) as healthIndex
FROM
${tableName}
...
...
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