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
f3c4426e
Commit
f3c4426e
authored
Jul 02, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
90124160
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+6
-6
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 @
f3c4426e
...
@@ -685,7 +685,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -685,7 +685,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
private
void
getParamQuery
(
String
paramKey
,
String
condition
,
Object
value
,
Boolean
isCustom
,
BoolQueryBuilder
boolMust
,
EnhancedDynamicQueryBuilder
builder
,
String
andOr
)
{
private
void
getParamQuery
(
String
paramKey
,
String
condition
,
Object
value
,
Boolean
isCustom
,
BoolQueryBuilder
boolMust
,
EnhancedDynamicQueryBuilder
builder
,
String
andOr
)
{
String
path
=
"techParams"
;
String
path
=
"techParams"
;
String
nestedFieldKey
=
path
+
".paramKey"
;
String
nestedFieldKey
=
path
+
".paramKey"
;
String
longEnd
=
".long
Value"
;
String
doubleEnd
=
".double
Value"
;
String
stringEnd
=
".strValue"
;
String
stringEnd
=
".strValue"
;
NestedQueryBuilder
keyNestedQuery
=
QueryBuilders
.
nestedQuery
(
NestedQueryBuilder
keyNestedQuery
=
QueryBuilders
.
nestedQuery
(
path
,
path
,
...
@@ -750,7 +750,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -750,7 +750,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
case
"gt"
:
case
"gt"
:
NestedQueryBuilder
gtQuery
=
QueryBuilders
.
nestedQuery
(
NestedQueryBuilder
gtQuery
=
QueryBuilders
.
nestedQuery
(
path
,
path
,
QueryBuilders
.
rangeQuery
(
path
+
long
End
).
gt
(
value
.
toString
()),
QueryBuilders
.
rangeQuery
(
path
+
double
End
).
gt
(
value
.
toString
()),
ScoreMode
.
Avg
ScoreMode
.
Avg
);
);
if
(
isCustom
)
{
if
(
isCustom
)
{
...
@@ -762,7 +762,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -762,7 +762,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
case
"gte"
:
case
"gte"
:
NestedQueryBuilder
gteQuery
=
QueryBuilders
.
nestedQuery
(
NestedQueryBuilder
gteQuery
=
QueryBuilders
.
nestedQuery
(
path
,
path
,
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
long
End
).
gte
(
value
.
toString
())),
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
double
End
).
gte
(
value
.
toString
())),
ScoreMode
.
Avg
ScoreMode
.
Avg
);
);
if
(
isCustom
)
{
if
(
isCustom
)
{
...
@@ -774,7 +774,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -774,7 +774,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
case
"lt"
:
case
"lt"
:
NestedQueryBuilder
ltQuery
=
QueryBuilders
.
nestedQuery
(
NestedQueryBuilder
ltQuery
=
QueryBuilders
.
nestedQuery
(
path
,
path
,
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
long
End
).
lt
(
value
.
toString
())),
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
double
End
).
lt
(
value
.
toString
())),
ScoreMode
.
Avg
ScoreMode
.
Avg
);
);
if
(
isCustom
)
{
if
(
isCustom
)
{
...
@@ -786,7 +786,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -786,7 +786,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
case
"lte"
:
case
"lte"
:
NestedQueryBuilder
lteQuery
=
QueryBuilders
.
nestedQuery
(
NestedQueryBuilder
lteQuery
=
QueryBuilders
.
nestedQuery
(
path
,
path
,
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
long
End
).
lte
(
value
.
toString
())),
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
double
End
).
lte
(
value
.
toString
())),
ScoreMode
.
Avg
ScoreMode
.
Avg
);
);
if
(
isCustom
)
{
if
(
isCustom
)
{
...
@@ -799,7 +799,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -799,7 +799,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
JSONArray
btValues
=
(
JSONArray
)
value
;
JSONArray
btValues
=
(
JSONArray
)
value
;
NestedQueryBuilder
betweenQuery
=
QueryBuilders
.
nestedQuery
(
NestedQueryBuilder
betweenQuery
=
QueryBuilders
.
nestedQuery
(
path
,
path
,
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
long
End
).
gte
(
Double
.
parseDouble
(
btValues
.
get
(
0
).
toString
())).
lte
(
Double
.
parseDouble
(
btValues
.
get
(
1
).
toString
()))),
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
rangeQuery
(
path
+
double
End
).
gte
(
Double
.
parseDouble
(
btValues
.
get
(
0
).
toString
())).
lte
(
Double
.
parseDouble
(
btValues
.
get
(
1
).
toString
()))),
ScoreMode
.
Avg
ScoreMode
.
Avg
);
);
if
(
isCustom
)
{
if
(
isCustom
)
{
...
...
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