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
357cbd37
Commit
357cbd37
authored
Sep 01, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改大屏综合统计-设备一类二类三类统计数据只查询非气瓶和压力管道的数据
parent
78c6b5d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+7
-8
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/ComprehensiveStatisticalAnalysisServiceImpl.java
View file @
357cbd37
...
@@ -3684,7 +3684,13 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -3684,7 +3684,13 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
getStatisticCountByGroup
(
request
,
scoreBuilder
,
scoreQuery
,
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
,
"scoreCount"
);
getStatisticCountByGroup
(
request
,
scoreBuilder
,
scoreQuery
,
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
,
"scoreCount"
);
if
(!
code
.
startsWith
(
"8"
))
{
if
(!
code
.
startsWith
(
"8"
))
{
for
(
String
key
:
scoreCountByGroup
.
keySet
())
{
for
(
String
key
:
scoreCountByGroup
.
keySet
())
{
Long
classCount
=
"1"
.
equals
(
key
)
?
oneClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
)
:
(
"2"
.
equals
(
key
)
?
(
twoClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
))
:
(
threeClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
)));
if
(
"1"
.
equals
(
key
))
{
oneClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
);
}
else
if
(
"2"
.
equals
(
key
))
{
twoClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
);
}
else
if
(
"3"
.
equals
(
key
))
{
threeClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
);
}
}
}
}
}
map
.
put
(
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
);
map
.
put
(
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
);
...
@@ -3730,9 +3736,6 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -3730,9 +3736,6 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
Map
<
String
,
Object
>
scoreCountByGroup
=
new
HashMap
<>();
Map
<
String
,
Object
>
scoreCountByGroup
=
new
HashMap
<>();
getStatisticCountByGroup
(
request
,
scoreBuilder
,
scoreQuery
,
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
,
"scoreCount"
);
getStatisticCountByGroup
(
request
,
scoreBuilder
,
scoreQuery
,
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
,
"scoreCount"
);
map
.
put
(
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
);
map
.
put
(
"DATA_QUALITY_SCORE"
,
scoreCountByGroup
);
for
(
String
key
:
scoreCountByGroup
.
keySet
())
{
Long
classCount
=
"1"
.
equals
(
key
)
?
oneClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
)
:
(
"2"
.
equals
(
key
)
?
(
twoClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
))
:
(
threeClassCount
+=
(
Long
)
scoreCountByGroup
.
get
(
key
)));
}
// 统计该分类下红黄绿码分别的分组数量 NEXT_INSPECT_DATE
// 统计该分类下红黄绿码分别的分组数量 NEXT_INSPECT_DATE
Map
<
String
,
Long
>
nextInspectCountByGroup
=
new
HashMap
<>();
Map
<
String
,
Long
>
nextInspectCountByGroup
=
new
HashMap
<>();
BoolQueryBuilder
nextInspectQuery
=
QueryBuilderUtils
.
copyBoolQuery
(
gasBoolQueryBuilder
);
BoolQueryBuilder
nextInspectQuery
=
QueryBuilderUtils
.
copyBoolQuery
(
gasBoolQueryBuilder
);
...
@@ -3760,10 +3763,6 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -3760,10 +3763,6 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
// 统计种类/类别/品种数据不对的数据字段
// 统计种类/类别/品种数据不对的数据字段
if
(!
ObjectUtils
.
isEmpty
(
staticCountByGroup
))
{
if
(!
ObjectUtils
.
isEmpty
(
staticCountByGroup
))
{
statisticOtherCount
(
request
,
dataMapList
,
staticCountByGroup
,
boolMust
,
groupField
,
equipCode
);
statisticOtherCount
(
request
,
dataMapList
,
staticCountByGroup
,
boolMust
,
groupField
,
equipCode
);
Map
<
String
,
Long
>
otherMap
=
(
Map
<
String
,
Long
>)
dataMapList
.
get
(
dataMapList
.
size
()
-
1
).
get
(
"DATA_QUALITY_SCORE"
);
oneClassCount
+=
otherMap
.
containsKey
(
"1"
)
?
otherMap
.
get
(
"1"
)
:
0L
;
twoClassCount
+=
otherMap
.
containsKey
(
"2"
)
?
otherMap
.
get
(
"2"
)
:
0L
;
threeClassCount
+=
otherMap
.
containsKey
(
"3"
)
?
otherMap
.
get
(
"3"
)
:
0L
;
}
}
if
(!
ObjectUtils
.
isEmpty
(
equipCode
))
{
if
(!
ObjectUtils
.
isEmpty
(
equipCode
))
{
...
...
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