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
88a10cce
Commit
88a10cce
authored
Jul 30, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏监管-右侧施工告知统计去掉气瓶
大屏监管-左侧设备状态统计去掉未登记
parent
478f6627
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
20 deletions
+12
-20
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+12
-20
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
View file @
88a10cce
...
@@ -799,19 +799,16 @@ public class JGDPStatisticsServiceImpl {
...
@@ -799,19 +799,16 @@ public class JGDPStatisticsServiceImpl {
* 1 在用
* 1 在用
* 2 停用
* 2 停用
* 4 注销
* 4 注销
* 0 未登记
*/
*/
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
for
(
int
i
=
0
;
i
<
4
;
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
();
Map
<
String
,
Object
>
map
=
new
HashMap
();
if
(
i
==
0
)
{
if
(
i
==
0
)
{
map
.
put
(
"name"
,
"未登记"
);
}
else
if
(
i
==
1
)
{
map
.
put
(
"name"
,
"在用"
);
map
.
put
(
"name"
,
"在用"
);
}
else
if
(
i
==
2
)
{
}
else
if
(
i
==
1
)
{
map
.
put
(
"name"
,
"停用"
);
map
.
put
(
"name"
,
"停用"
);
}
else
if
(
i
==
3
)
{
}
else
if
(
i
==
2
)
{
map
.
put
(
"name"
,
"报废"
);
map
.
put
(
"name"
,
"报废"
);
}
else
if
(
i
==
4
)
{
}
else
if
(
i
==
3
)
{
map
.
put
(
"name"
,
"注销"
);
map
.
put
(
"name"
,
"注销"
);
}
}
map
.
put
(
"value"
,
dataMap
.
getOrDefault
(
String
.
valueOf
(
i
),
0L
));
map
.
put
(
"value"
,
dataMap
.
getOrDefault
(
String
.
valueOf
(
i
),
0L
));
...
@@ -1300,7 +1297,7 @@ public class JGDPStatisticsServiceImpl {
...
@@ -1300,7 +1297,7 @@ public class JGDPStatisticsServiceImpl {
legendData
.
add
(
map
);
legendData
.
add
(
map
);
}
}
resultMap
.
put
(
"legendData"
,
legendData
);
resultMap
.
put
(
"legendData"
,
legendData
);
List
<
String
>
xDataList
=
Arrays
.
asList
(
"气瓶"
,
"电梯"
,
"压力容器"
,
"锅炉"
,
"起重机械"
,
"场(厂)内专用"
,
"大型游乐设施"
,
"压力管道"
,
"客运索道"
);
List
<
String
>
xDataList
=
Arrays
.
asList
(
"电梯"
,
"压力容器"
,
"锅炉"
,
"起重机械"
,
"场(厂)内专用"
,
"大型游乐设施"
,
"压力管道"
,
"客运索道"
);
resultMap
.
put
(
"xdata"
,
xDataList
);
resultMap
.
put
(
"xdata"
,
xDataList
);
List
installNotify
=
new
ArrayList
<>();
List
installNotify
=
new
ArrayList
<>();
List
transformNotify
=
new
ArrayList
<>();
List
transformNotify
=
new
ArrayList
<>();
...
@@ -1319,46 +1316,41 @@ public class JGDPStatisticsServiceImpl {
...
@@ -1319,46 +1316,41 @@ public class JGDPStatisticsServiceImpl {
*/
*/
for
(
int
i
=
0
;
i
<
xDataList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
xDataList
.
size
();
i
++)
{
if
(
i
==
0
)
{
if
(
i
==
0
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"2300"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"2300"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"2300"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"2300"
,
0
));
}
else
if
(
i
==
1
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"3000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"3000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"3000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"3000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"3000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"3000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"3000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"3000"
,
0
));
}
else
if
(
i
==
2
)
{
}
else
if
(
i
==
1
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"2000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"2000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"2000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"2000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"2000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"2000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"2000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"2000"
,
0
));
}
else
if
(
i
==
3
)
{
}
else
if
(
i
==
2
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"1000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"1000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"1000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"1000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"1000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"1000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"1000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"1000"
,
0
));
}
else
if
(
i
==
4
)
{
}
else
if
(
i
==
3
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"4000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"4000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"4000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"4000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"4000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"4000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"4000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"4000"
,
0
));
}
else
if
(
i
==
5
)
{
}
else
if
(
i
==
4
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"5000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"5000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"5000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"5000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"5000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"5000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"5000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"5000"
,
0
));
}
else
if
(
i
==
6
)
{
}
else
if
(
i
==
5
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"6000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"6000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"6000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"6000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"6000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"6000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"6000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"6000"
,
0
));
}
else
if
(
i
==
7
)
{
}
else
if
(
i
==
6
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"8000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"8000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"8000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"8000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"8000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"8000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"8000"
,
0
));
transloadingNotify
.
add
(
transferCountMap
.
getOrDefault
(
"8000"
,
0
));
}
else
if
(
i
==
8
)
{
}
else
if
(
i
==
7
)
{
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"9000"
,
0
));
installNotify
.
add
(
installCountMap
.
getOrDefault
(
"9000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"9000"
,
0
));
transformNotify
.
add
(
reformCountMap
.
getOrDefault
(
"9000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"9000"
,
0
));
maintainNotify
.
add
(
maintenanceCountMap
.
getOrDefault
(
"9000"
,
0
));
...
...
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