Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
vion-label
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 34bbb1b2
authored
Jul 08, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]打印日志
1 parent
6eccc8c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
label-platform/src/main/java/com/viontech/label/platform/service/main/ReidService.java
label-platform/src/main/java/com/viontech/label/platform/service/main/ReidService.java
View file @
34bbb1b
...
@@ -153,7 +153,10 @@ public class ReidService {
...
@@ -153,7 +153,10 @@ public class ReidService {
try
{
try
{
CompletableFuture
<
AlgResult
>
response
=
matchClient
.
EASY_POOL_API
.
queryPool
(
poolName
);
CompletableFuture
<
AlgResult
>
response
=
matchClient
.
EASY_POOL_API
.
queryPool
(
poolName
);
AlgResult
result
=
response
.
get
(
20
,
TimeUnit
.
SECONDS
);
AlgResult
result
=
response
.
get
(
20
,
TimeUnit
.
SECONDS
);
if
(
result
.
getErrCode
().
equals
(
4
))
{
if
(
result
!=
null
)
{
log
.
info
(
result
.
toString
());
}
if
(
result
!=
null
&&
result
.
getErrCode
().
equals
(
4
))
{
CompletableFuture
<
AlgResult
>
future
=
matchClient
.
EASY_POOL_API
.
createEmptyPool
(
poolName
);
CompletableFuture
<
AlgResult
>
future
=
matchClient
.
EASY_POOL_API
.
createEmptyPool
(
poolName
);
future
.
get
();
future
.
get
();
}
}
...
@@ -170,7 +173,12 @@ public class ReidService {
...
@@ -170,7 +173,12 @@ public class ReidService {
Person
person
=
new
Person
().
setPersonId
(
data
.
getPersonUnid
()).
setBodyFeatures
(
getBodyFeatures
(
feature
,
data
.
getUnid
(),
data
.
getGateId
())).
setCounttime
(
data
.
getCountTime
());
Person
person
=
new
Person
().
setPersonId
(
data
.
getPersonUnid
()).
setBodyFeatures
(
getBodyFeatures
(
feature
,
data
.
getUnid
(),
data
.
getGateId
())).
setCounttime
(
data
.
getCountTime
());
CompletableFuture
<
AlgResult
>
future
=
matchClient
.
EASY_PERSON_API
.
addPerson
(
poolName
,
Lists
.
newArrayList
(
person
));
CompletableFuture
<
AlgResult
>
future
=
matchClient
.
EASY_PERSON_API
.
addPerson
(
poolName
,
Lists
.
newArrayList
(
person
));
AlgResult
result1
=
future
.
get
(
20
,
TimeUnit
.
SECONDS
);
AlgResult
result1
=
future
.
get
(
20
,
TimeUnit
.
SECONDS
);
log
.
info
(
result1
.
toString
());
if
(
result1
!=
null
)
{
log
.
info
(
"添加特征池返回:{}"
,
result1
.
toString
());
}
else
{
log
.
info
(
"添加特征池超时"
);
throw
new
RuntimeException
(
"添加特征池超时"
);
}
}
}
/**
/**
...
...
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