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
4714eced
Commit
4714eced
authored
Sep 12, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(api): 修正压力管道长度统计逻辑并添加设备代码和出场编号枚举
parent
980204b2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
11 deletions
+25
-11
EquipAdvanceSearchEnum.java
...t/module/statistics/api/enums/EquipAdvanceSearchEnum.java
+2
-0
ZLDPStatisticsController.java
...le/statistcs/biz/controller/ZLDPStatisticsController.java
+1
-2
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+2
-2
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+16
-6
JYJCDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/JYJCDPStatisticsServiceImpl.java
+1
-1
ZLDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
+3
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/enums/EquipAdvanceSearchEnum.java
View file @
4714eced
...
...
@@ -40,6 +40,8 @@ public enum EquipAdvanceSearchEnum {
AZUSC_UNIT_NAME
(
"安装改造维修单位名称"
,
"USC_UNIT_NAME"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
,
FieldType
.
Text
),
CODE96333
(
"96333识别码"
,
"CODE96333"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
,
FieldType
.
Keyword
),
SUPERVISORY_CODE
(
"监管码"
,
"SUPERVISORY_CODE"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
,
FieldType
.
Keyword
),
EQU_CODE
(
"设备代码"
,
"EQU_CODE"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
,
FieldType
.
Keyword
),
FACTORY_NUM
(
"出场编号"
,
"FACTORY_NUM"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
,
FieldType
.
Keyword
),
EQU_TYPE
(
"设备型号"
,
"EQU_TYPE"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
,
FieldType
.
Text
),
PRODUCE_DATE
(
"制造日期"
,
"PRODUCE_DATE"
,
TechnicalParameter
.
ParamType
.
DATE
,
""
,
null
,
null
,
FieldType
.
Date
),
designDate
(
"设计日期"
,
"designDate"
,
TechnicalParameter
.
ParamType
.
DATE
,
""
,
null
,
null
,
FieldType
.
Date
),
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/ZLDPStatisticsController.java
View file @
4714eced
...
...
@@ -19,7 +19,6 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -193,6 +192,6 @@ public class ZLDPStatisticsController {
@GetMapping
(
value
=
"/getTree"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询监管部门树"
,
notes
=
"查询监管部门树"
)
public
ResponseModel
<
Object
>
getTree
(){
return
ResponseHelper
.
buildResponse
(
Collections
.
singletonList
(
statisticsService
.
getRegulatorUnitTree
()
));
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getAllRegulatorUnitTree
(
));
}
}
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/AQZSDPStatisticsServiceImpl.java
View file @
4714eced
...
...
@@ -910,7 +910,7 @@ public class AQZSDPStatisticsServiceImpl {
result
.
put
(
"total"
,
hasSupervisoryCodeEquipCount
);
//2.压力管道长度统计
// stCommonService.staticsCenterMapCountDataForPipeline(result, orgCode,true, false);
jgDPStatisticsService
.
staticsCenterMapCountPipLine
(
result
,
orgCode
);
jgDPStatisticsService
.
staticsCenterMapCountPipLine
(
result
,
orgCode
,
true
);
//3.单位数量统计
// 单位统计修改为查询es
// this.staticsCenterMapCountDataForCompany(result, orgCode, dpFilterParamDto.getCityCode());
...
...
@@ -1024,7 +1024,7 @@ public class AQZSDPStatisticsServiceImpl {
stCommonService
.
staticsCenterMapCountDataForEquip
(
result
,
cylinderNum
,
orgCode
,
true
,
true
,
false
);
// 2. 压力管道长度统计
// stCommonService.staticsCenterMapCountDataForPipeline(result, orgCode,true, false);
jgDPStatisticsService
.
staticsCenterMapCountPipLine
(
result
,
orgCode
);
jgDPStatisticsService
.
staticsCenterMapCountPipLine
(
result
,
orgCode
,
true
);
//3.单位数量统计
// 单位统计修改为查询es
// this.staticsCenterMapCountDataForCompany(result, orgCode, dpFilterParamDto.getCityCode());
...
...
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 @
4714eced
...
...
@@ -34,6 +34,7 @@ import com.yeejoin.amos.boot.module.jg.api.enums.*;
import
com.yeejoin.amos.boot.module.jg.api.mapper.*
;
import
com.yeejoin.amos.boot.module.statistcs.biz.utils.JsonUtils
;
import
com.yeejoin.amos.boot.module.statistcs.biz.utils.QueryBuilderUtils
;
import
com.yeejoin.amos.boot.module.statistcs.factory.EnhancedDynamicQueryBuilder
;
import
com.yeejoin.amos.boot.module.statistics.api.dto.*
;
import
com.yeejoin.amos.boot.module.statistics.api.enums.RegulatoryUnitLevelEnum
;
import
com.yeejoin.amos.boot.module.statistics.api.enums.StatisticalAnalysisEnum
;
...
...
@@ -396,7 +397,7 @@ public class JGDPStatisticsServiceImpl {
//2.压力管道长度统计
// 修改为查询es
// stCommonService.staticsCenterMapCountDataForPipeline(result, orgCode, true, false);
this
.
staticsCenterMapCountPipLine
(
result
,
orgCode
);
this
.
staticsCenterMapCountPipLine
(
result
,
orgCode
,
true
);
//3.单位数量统计
this
.
staticsCenterMapCountDataForCompany
(
result
,
orgCode
,
dpFilterParamDto
.
getCityCode
());
//4.人员数量统计
...
...
@@ -415,6 +416,7 @@ public class JGDPStatisticsServiceImpl {
//1.8大类设备数量统计,压力容器里包括气瓶所以需要特殊处理,在统计压力容器时去掉气瓶的数量
stCommonService
.
staticsCenterMapCountDataForEquip
(
result
,
cylinderNum
,
orgCode
,
false
,
true
,
false
);
//2.压力管道长度统计
this
.
staticsCenterMapCountPipLine
(
result
,
orgCode
,
false
);
stCommonService
.
staticsCenterMapCountDataForPipeline
(
result
,
orgCode
,
false
,
false
);
return
result
;
}
...
...
@@ -432,7 +434,7 @@ public class JGDPStatisticsServiceImpl {
// 2. 压力管道长度统计
// 修改为查询es
//stCommonService.staticsCenterMapCountDataForPipeline(result, orgCode, true, false);
this
.
staticsCenterMapCountPipLine
(
result
,
orgCode
);
this
.
staticsCenterMapCountPipLine
(
result
,
orgCode
,
true
);
// 3. 人员数量统计
this
.
staticsCenterMapCountDataForPerson
(
result
,
dpFilterParamDto
,
orgCode
);
return
result
;
...
...
@@ -490,7 +492,7 @@ public class JGDPStatisticsServiceImpl {
}
public
void
staticsCenterMapCountPipLine
(
Map
<
String
,
Object
>
result
,
String
orgCode
)
{
public
void
staticsCenterMapCountPipLine
(
Map
<
String
,
Object
>
result
,
String
orgCode
,
Boolean
isMatchSupervisoryCode
)
{
SearchRequest
request
=
new
SearchRequest
();
SearchSourceBuilder
builder
=
new
SearchSourceBuilder
();
request
.
indices
(
StatisticalAnalysisEnum
.
equip
.
getKey
());
...
...
@@ -498,8 +500,16 @@ public class JGDPStatisticsServiceImpl {
BoolQueryBuilder
pipeLengthQuery
=
new
BoolQueryBuilder
();
pipeLengthQuery
.
must
(
QueryBuilders
.
prefixQuery
(
"ORG_BRANCH_CODE"
,
orgCode
));
pipeLengthQuery
.
must
(
QueryBuilders
.
existsQuery
(
"pipeLength"
));
pipeLengthQuery
.
must
(
existsQuery
(
"SUPERVISORY_CODE"
));
pipeLengthQuery
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
""
));
pipeLengthQuery
.
must
(
QueryBuilders
.
prefixQuery
(
"ORG_BRANCH_CODE"
,
orgCode
));
if
(
isMatchSupervisoryCode
)
{
pipeLengthQuery
.
must
(
existsQuery
(
"SUPERVISORY_CODE"
));
pipeLengthQuery
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
""
));
}
else
{
EnhancedDynamicQueryBuilder
enhancedDynamicQueryBuilder
=
new
EnhancedDynamicQueryBuilder
();
enhancedDynamicQueryBuilder
.
add
(
QueryBuilders
.
boolQuery
().
mustNot
(
existsQuery
(
"SUPERVISORY_CODE"
)),
"or"
);
enhancedDynamicQueryBuilder
.
add
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
""
),
"or"
);
pipeLengthQuery
.
must
(
enhancedDynamicQueryBuilder
.
build
());
}
pipeLengthQuery
.
mustNot
(
QueryBuilders
.
termsQuery
(
"STATUS"
,
Arrays
.
asList
(
"草稿"
,
"已拒领"
,
"待认领"
)));
SumAggregationBuilder
pipeLengthAgg
=
AggregationBuilders
.
sum
(
"pipeLengthSum"
).
field
(
"pipeLength"
).
missing
(
0
);
builder
.
query
(
pipeLengthQuery
);
...
...
@@ -1834,7 +1844,7 @@ public class JGDPStatisticsServiceImpl {
result
.
put
(
"total"
,
hasSupervisoryCodeEquipCount
);
// 2.压力管道长度统计
// stCommonService.staticsCenterMapCountDataForPipeline(result, orgCode, true, false);
this
.
staticsCenterMapCountPipLine
(
result
,
orgCode
);
this
.
staticsCenterMapCountPipLine
(
result
,
orgCode
,
true
);
// 3.已纳管设备总数
this
.
staticsCenterMapCountDataForEquipIsManage
(
result
);
// 4.登记证总数
...
...
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/JYJCDPStatisticsServiceImpl.java
View file @
4714eced
...
...
@@ -548,7 +548,7 @@ public class JYJCDPStatisticsServiceImpl {
result
.
put
(
"total"
,
hasSupervisoryCodeEquipCount
);
// 3.压力管道统计
// stCommonService.staticsCenterMapCountDataForPipeline(result, orgCode,true, false);
jgDPStatisticsService
.
staticsCenterMapCountPipLine
(
result
,
orgCode
);
jgDPStatisticsService
.
staticsCenterMapCountPipLine
(
result
,
orgCode
,
true
);
// 4.报检数量统计
this
.
staticsCenterMapCountDataReporting
(
result
,
dpFilterParamDto
);
// 5.检验检测临期设备数数量统计
...
...
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/ZLDPStatisticsServiceImpl.java
View file @
4714eced
...
...
@@ -1278,5 +1278,8 @@ public class ZLDPStatisticsServiceImpl {
return
null
;
}
public
List
<
LinkedHashMap
>
getAllRegulatorUnitTree
()
{
return
(
List
<
LinkedHashMap
>)
redisUtils
.
get
(
"REGULATOR_UNIT_TREE"
);
}
}
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