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
64880da3
Commit
64880da3
authored
Jul 17, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(statistics): 优化设备数量统计逻辑
- 在 JGDPStatisticsServiceImpl 中单独计算已纳管设备(台套)数量总数
parent
ad0f5d43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+3
-0
StCommonServiceImpl.java
...odule/statistcs/biz/service/impl/StCommonServiceImpl.java
+2
-3
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 @
64880da3
...
...
@@ -380,6 +380,9 @@ public class JGDPStatisticsServiceImpl {
long
cylinderNum
=
stCommonService
.
staticsCenterMapCountDataForCylinder
(
result
,
orgCode
,
true
,
false
,
false
);
//1.8大类设备数量统计,压力容器里包括气瓶所以需要特殊处理,在统计压力容器时去掉气瓶的数量
stCommonService
.
staticsCenterMapCountDataForEquip
(
result
,
cylinderNum
,
orgCode
,
true
,
false
,
false
);
// 单独计算已纳管设备(台套)数量总数
long
hasSupervisoryCodeEquipCount
=
stCommonService
.
queryHasSupervisoryCodeEquipCount
(
orgCode
,
false
);
result
.
put
(
"total"
,
hasSupervisoryCodeEquipCount
);
//2.压力管道长度统计
stCommonService
.
staticsCenterMapCountDataForPipeline
(
result
,
orgCode
,
true
,
false
);
//3.单位数量统计
...
...
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/StCommonServiceImpl.java
View file @
64880da3
...
...
@@ -303,7 +303,7 @@ public class StCommonServiceImpl {
});
// 注意,求总数时:countMap不包括气瓶数量、压力管道数量(20240819修改)
// 总数为已赋码设备数量,需要单独统计
result
.
put
(
DPMapStatisticsItemEnum
.
TOTAL
.
getCode
(),
queryHasSupervisoryCodeEquipCount
(
orgCode
,
isOrgBranchCodeExactMatch
,
cylinderNum
));
result
.
put
(
DPMapStatisticsItemEnum
.
TOTAL
.
getCode
(),
countMap
.
values
().
stream
().
mapToLong
(
e
->
e
).
sum
(
));
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -315,10 +315,9 @@ public class StCommonServiceImpl {
* 统计已赋码设备数量
* @param orgCode
* @param isOrgBranchCodeExactMatch
* @param cylinderNum
* @return
*/
public
long
queryHasSupervisoryCodeEquipCount
(
String
orgCode
,
Boolean
isOrgBranchCodeExactMatch
,
long
cylinderNum
)
{
public
long
queryHasSupervisoryCodeEquipCount
(
String
orgCode
,
Boolean
isOrgBranchCodeExactMatch
)
{
CountRequest
request
=
new
CountRequest
();
request
.
indices
(
"idx_biz_view_jg_all"
);
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
...
...
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