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 8fdb47f3
authored
Apr 20, 2023
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]增加日志
1 parent
bd305ef6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/service/PersonService.java
View file @
8fdb47f
...
...
@@ -96,7 +96,8 @@ public class PersonService {
if
(
poolId
!=
null
)
{
poolIds
.
add
(
poolId
);
}
log
.
info
(
"人员匹配操作开始,PoolIds:[{}]"
,
poolIds
);
log
.
info
(
"人员匹配操作开始,PoolIds:[{}],rid:{}"
,
poolIds
,
rid
);
long
startTime
=
System
.
currentTimeMillis
();
try
{
String
[]
indices
=
poolIds
.
toArray
(
new
String
[
poolIds
.
size
()]);
SearchRequest
request
=
new
SearchRequest
(
indices
);
...
...
@@ -145,7 +146,7 @@ public class PersonService {
ResponseVo
result
=
ResponseVo
.
success
(
rid
,
"success"
);
result
.
setCount
(
count
);
log
.
info
(
"rid:{} CountMatchPerson完成,PoolIds:[{}],count:{}
"
,
rid
,
poolIds
,
count
);
log
.
info
(
"rid:{} CountMatchPerson完成,PoolIds:[{}],count:{}
,耗时:{}"
,
rid
,
poolIds
,
count
,
System
.
currentTimeMillis
()
-
startTime
);
return
result
;
}
catch
(
ElasticsearchStatusException
e
)
{
ResponseVo
error
=
ResponseVo
.
error
(
rid
,
e
.
getDetailedMessage
());
...
...
@@ -180,6 +181,7 @@ public class PersonService {
poolIds
.
add
(
poolId
);
}
log
.
info
(
"人员匹配操作开始,PoolIds:[{}],rid:{}"
,
poolIds
,
rid
);
long
startTime
=
System
.
currentTimeMillis
();
try
{
for
(
String
id
:
poolIds
)
{
Pool
pool
=
new
Pool
();
...
...
@@ -204,7 +206,7 @@ public class PersonService {
}
success
.
setMatch
(
1
);
success
.
setPersonPoolStatus
(
poolStatus
);
log
.
info
(
"人员匹配操作完成,PoolIds:
[{}}, {},rid:{}"
,
poolIds
,
JSON
.
toJSONString
(
poolStatus
),
rid
);
log
.
info
(
"人员匹配操作完成,PoolIds:
{}, poolStatus:{},rid:{},耗时:{}"
,
poolIds
,
JSON
.
toJSONString
(
poolStatus
),
rid
,
System
.
currentTimeMillis
()
-
startTime
);
return
success
;
}
catch
(
ElasticsearchStatusException
e
)
{
if
(
e
.
status
()
==
RestStatus
.
BAD_REQUEST
&&
e
.
getDetailedMessage
().
contains
(
Constant
.
CLASS_CAST_EXCEPTION
))
{
...
...
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