Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
VVAS-Match
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 524400d6
authored
Sep 30, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]增加支持多个direction搜索
1 parent
1c4ec01c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/service/PersonService.java
View file @
524400d
...
...
@@ -498,6 +498,10 @@ public class PersonService {
if
(
StringUtils
.
isNotBlank
(
person
.
getCompareDirection
()))
{
queries
.
add
(
QueryBuilders
.
term
().
field
(
"direction"
).
value
(
FieldValue
.
of
(
person
.
getCompareDirection
())).
build
().
_toQuery
());
}
List
<
Integer
>
compareDirectionIn
=
person
.
getCompareDirectionIn
();
if
(
CollectionUtils
.
isNotEmpty
(
compareDirectionIn
))
{
queries
.
add
(
QueryBuilders
.
terms
().
field
(
"direction"
).
terms
(
new
TermsQueryField
.
Builder
().
value
(
compareDirectionIn
.
stream
().
map
(
FieldValue:
:
of
).
collect
(
Collectors
.
toList
())).
build
()).
build
().
_toQuery
());
}
Date
counttimeGTE
=
person
.
getCounttimeGTE
();
Date
counttimeLTE
=
person
.
getCounttimeLTE
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment