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 9b01f7d0
authored
Nov 20, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]修复空指针异常
1 parent
ef0950e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/service/PersonService.java
View file @
9b01f7d
...
@@ -562,9 +562,12 @@ public class PersonService {
...
@@ -562,9 +562,12 @@ public class PersonService {
Date
counttimeGTE
=
person
.
getCounttimeGTE
();
Date
counttimeGTE
=
person
.
getCounttimeGTE
();
Date
counttimeLTE
=
person
.
getCounttimeLTE
();
Date
counttimeLTE
=
person
.
getCounttimeLTE
();
if
(
counttimeGTE
!=
null
||
counttimeLTE
!=
null
)
{
if
(
counttimeGTE
!=
null
)
{
// boolQuery.filter(rangeQueryBuilder);
// boolQuery.filter(rangeQueryBuilder);
queries
.
add
(
QueryBuilders
.
range
().
term
(
s
->
s
.
field
(
"counttime"
).
gte
(
Constant
.
DATE_FORMAT
.
get
().
format
(
counttimeGTE
)).
lte
(
Constant
.
DATE_FORMAT
.
get
().
format
(
counttimeLTE
))).
build
().
_toQuery
());
queries
.
add
(
QueryBuilders
.
range
().
term
(
s
->
s
.
field
(
"counttime"
).
gte
(
Constant
.
DATE_FORMAT
.
get
().
format
(
counttimeGTE
))).
build
().
_toQuery
());
}
if
(
counttimeLTE
!=
null
)
{
queries
.
add
(
QueryBuilders
.
range
().
term
(
s
->
s
.
field
(
"counttime"
).
lte
(
Constant
.
DATE_FORMAT
.
get
().
format
(
counttimeLTE
))).
build
().
_toQuery
());
}
}
return
knnQuery
.
filter
(
queries
).
build
();
return
knnQuery
.
filter
(
queries
).
build
();
...
...
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