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
03fd4773
Commit
03fd4773
authored
Jul 14, 2025
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
22514a1f
178e32a7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+0
-0
QueryBuilderUtils.java
...os/boot/module/statistcs/biz/utils/QueryBuilderUtils.java
+33
-0
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 @
03fd4773
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/utils/QueryBuilderUtils.java
0 → 100644
View file @
03fd4773
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
utils
;
import
org.elasticsearch.index.query.BoolQueryBuilder
;
import
org.elasticsearch.index.query.QueryBuilders
;
public
class
QueryBuilderUtils
{
public
static
BoolQueryBuilder
copyBoolQuery
(
BoolQueryBuilder
original
)
{
if
(
original
==
null
)
{
return
QueryBuilders
.
boolQuery
();
}
BoolQueryBuilder
copy
=
QueryBuilders
.
boolQuery
();
// 复制查询条件
original
.
must
().
forEach
(
copy:
:
must
);
original
.
filter
().
forEach
(
copy:
:
filter
);
original
.
should
().
forEach
(
copy:
:
should
);
original
.
mustNot
().
forEach
(
copy:
:
mustNot
);
// 复制minimumShouldMatch设置(新版本方式)
if
(
original
.
minimumShouldMatch
()
!=
null
)
{
copy
.
minimumShouldMatch
(
original
.
minimumShouldMatch
());
}
// 复制其他属性
copy
.
boost
(
original
.
boost
());
copy
.
queryName
(
original
.
queryName
());
return
copy
;
}
}
\ No newline at end of file
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