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 cd6b5cda
authored
May 21, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复一个错误,添加人员时如果没有传时间会导致空指针异常
1 parent
fa8471fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/service/PersonService.java
View file @
cd6b5cd
...
@@ -182,7 +182,7 @@ public class PersonService {
...
@@ -182,7 +182,7 @@ public class PersonService {
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
"data"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
"data"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
"counttime"
,
Constant
.
DATE_FORMAT
.
get
().
format
(
counttime
),
"channelSerialNum"
,
channelSerialNum
);
"counttime"
,
counttime
==
null
?
null
:
Constant
.
DATE_FORMAT
.
get
().
format
(
counttime
),
"channelSerialNum"
,
channelSerialNum
);
bulkRequest
.
add
(
indexRequest
);
bulkRequest
.
add
(
indexRequest
);
}
}
}
}
...
@@ -206,7 +206,7 @@ public class PersonService {
...
@@ -206,7 +206,7 @@ public class PersonService {
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
"body"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
"body"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
"counttime"
,
Constant
.
DATE_FORMAT
.
get
().
format
(
counttime
),
"channelSerialNum"
,
channelSerialNum
);
"counttime"
,
counttime
==
null
?
null
:
Constant
.
DATE_FORMAT
.
get
().
format
(
counttime
),
"channelSerialNum"
,
channelSerialNum
);
bulkRequest
.
add
(
indexRequest
);
bulkRequest
.
add
(
indexRequest
);
}
}
}
}
...
...
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