Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
9cfb0cfb
Commit
9cfb0cfb
authored
Sep 20, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改大屏监控右下角柱状图问题
parent
33509d2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+27
-3
FanWarningRecord.xml
.../src/main/resources/mapper/tdengine2/FanWarningRecord.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 @
9cfb0cfb
...
@@ -762,9 +762,33 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
...
@@ -762,9 +762,33 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
jgMapResult
.
put
(
"data"
,
jgList
);
jgMapResult
.
put
(
"data"
,
jgList
);
jgMapResult
.
put
(
"name"
,
"警告"
);
jgMapResult
.
put
(
"name"
,
"警告"
);
List
<
Map
<
String
,
Object
>>
hashMaps
=
Arrays
.
asList
(
wxMapResult
,
zyMapResult
,
jgMapResult
);
//为了页面显示 此处只取前30条
resultMap
.
put
(
"axisData"
,
list
);
if
(
list
.
size
()
>
30
){
resultMap
.
put
(
"seriesData"
,
hashMaps
);
List
<
String
>
newAxisData
=
list
.
subList
(
0
,
29
);
Collections
.
reverse
(
newAxisData
);
List
<
Integer
>
newWxList
=
wxList
.
subList
(
0
,
29
);
Collections
.
reverse
(
newWxList
);
List
<
Integer
>
newZyList
=
zyList
.
subList
(
0
,
29
);
Collections
.
reverse
(
newZyList
);
List
<
Integer
>
newJgList
=
jgList
.
subList
(
0
,
29
);
Collections
.
reverse
(
newJgList
);
HashMap
<
String
,
Object
>
newWxMapResult
=
new
HashMap
<>();
newWxMapResult
.
put
(
"data"
,
newWxList
);
newWxMapResult
.
put
(
"name"
,
"危险"
);
HashMap
<
String
,
Object
>
newZyMapResult
=
new
HashMap
<>();
newZyMapResult
.
put
(
"data"
,
newZyList
);
newZyMapResult
.
put
(
"name"
,
"注意"
);
HashMap
<
String
,
Object
>
newJgMapResult
=
new
HashMap
<>();
newJgMapResult
.
put
(
"data"
,
newJgList
);
newJgMapResult
.
put
(
"name"
,
"警告"
);
List
<
Map
<
String
,
Object
>>
hashMaps
=
Arrays
.
asList
(
newWxMapResult
,
newZyMapResult
,
newJgMapResult
);
resultMap
.
put
(
"axisData"
,
newAxisData
);
resultMap
.
put
(
"seriesData"
,
hashMaps
);
}
else
{
List
<
Map
<
String
,
Object
>>
hashMaps
=
Arrays
.
asList
(
wxMapResult
,
zyMapResult
,
jgMapResult
);
resultMap
.
put
(
"axisData"
,
list
);
resultMap
.
put
(
"seriesData"
,
hashMaps
);
}
return
ResponseHelper
.
buildResponse
(
resultMap
);
return
ResponseHelper
.
buildResponse
(
resultMap
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanWarningRecord.xml
View file @
9cfb0cfb
...
@@ -567,7 +567,7 @@
...
@@ -567,7 +567,7 @@
and b.arae like #{araeCode}
and b.arae like #{araeCode}
</if>
</if>
</where>
</where>
order by b.`sort`
A
SC
order by b.`sort`
DE
SC
</select>
</select>
<select
id=
"getAllEquipAlarmInfoByStation"
resultType=
"map"
>
<select
id=
"getAllEquipAlarmInfoByStation"
resultType=
"map"
>
...
...
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