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
373e3aa0
Commit
373e3aa0
authored
Jul 02, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://39.100.92.250:5000/moa/amos-boot-biz
into develop_tzs_register
parents
464bc06f
2c6116ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+13
-7
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 @
373e3aa0
...
...
@@ -335,6 +335,14 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
if
(
dto
.
containsKey
(
"identification"
))
{
dto
.
put
(
"identification"
,
JSONObject
.
parseObject
(
JSONObject
.
parseArray
(
dto
.
get
(
"identification"
).
toString
()).
get
(
0
).
toString
()).
get
(
"url"
));
}
if
(
dto
.
containsKey
(
"equipType"
))
{
String
[]
equipCodes
=
dto
.
get
(
"equipType"
).
toString
().
split
(
","
);
StringBuilder
equipTypes
=
new
StringBuilder
();
for
(
String
equipType
:
equipCodes
)
{
equipTypes
.
append
(
EquipmentClassifityEnum
.
getNameByCode
(
equipType
)
+
","
);
}
dto
.
put
(
"equipType"
,
equipTypes
.
substring
(
0
,
equipTypes
.
length
()
-
1
));
}
list
.
add
(
dto
);
}
totle
=
Objects
.
requireNonNull
(
response
.
getInternalResponse
().
hits
().
getTotalHits
()).
value
;
...
...
@@ -840,7 +848,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
JSONArray
leftGroupList
=
new
JSONArray
();
// 剥离计数参数
getTechParam
(
leftGroup
,
leftGroupList
,
leftTechParam
,
leftParamRange
);
// 如果技术参数分组不为空,添加技术参数筛选条件到左侧筛选条件中
// 如果技术参数
和
分组不为空,添加技术参数筛选条件到左侧筛选条件中
if
(!
ObjectUtils
.
isEmpty
(
leftTechParam
)
&&
!
ObjectUtils
.
isEmpty
(
leftParamRange
))
{
addTechParam
(
leftTechParam
,
leftParamRange
,
leftBuilder
);
}
...
...
@@ -858,7 +866,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
JSONArray
rightGroupList
=
new
JSONArray
();
// 剥离计数参数
getTechParam
(
rightGroup
,
rightGroupList
,
rightTechParam
,
rightParamRange
);
// 如果技术参数
分组不为空,添加技术参数筛选条件到左
侧筛选条件中
// 如果技术参数
和分组不为空,添加技术参数筛选条件到右
侧筛选条件中
if
(!
ObjectUtils
.
isEmpty
(
rightTechParam
)
&&
!
ObjectUtils
.
isEmpty
(
rightParamRange
))
{
addTechParam
(
rightTechParam
,
rightParamRange
,
rightBuilder
);
}
...
...
@@ -898,7 +906,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
}
private
void
getTechParam
(
JSONArray
group
,
JSONArray
resultGroup
,
JSONObject
techParam
,
JSONObject
paramRange
)
{
//
如果只有技术参数或者只有参数范围,则舍弃对应的
分组
//
剥离技术参数
分组
group
.
forEach
(
item
->
{
JSONObject
itemObj
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
item
));
if
(
itemObj
.
containsKey
(
"field"
)
&&
itemObj
.
containsKey
(
"value"
))
{
...
...
@@ -948,12 +956,10 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
builder
.
add
(
QueryBuilders
.
rangeQuery
(
field
).
gte
(
Double
.
parseDouble
(
btValues
.
get
(
0
).
toString
())).
lte
(
Double
.
parseDouble
(
btValues
.
get
(
1
).
toString
())),
isOr
);
break
;
case
"in"
:
JSONArray
inValues
=
(
JSONArray
)
value
;
builder
.
add
(
QueryBuilders
.
termsQuery
(
field
,
inValues
),
isOr
);
builder
.
add
(
QueryBuilders
.
termsQuery
(
field
,
value
),
isOr
);
break
;
case
"notIn"
:
JSONArray
notInValues
=
(
JSONArray
)
value
;
builder
.
add
(
QueryBuilders
.
boolQuery
().
mustNot
(
QueryBuilders
.
termsQuery
(
field
,
notInValues
)),
isOr
);
builder
.
add
(
QueryBuilders
.
boolQuery
().
mustNot
(
QueryBuilders
.
termsQuery
(
field
,
value
)),
isOr
);
break
;
}
}
...
...
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