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 08223f55
authored
Sep 02, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[add]增加最大数量限制
1 parent
2d5b3747
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
label-tool-keliu/src/main/java/com/viontech/label/tool/keliu/controller/KeliuController.java
label-tool-keliu/src/main/java/com/viontech/label/tool/keliu/controller/KeliuController.java
View file @
08223f5
...
...
@@ -72,7 +72,8 @@ public class KeliuController {
@RequestParam
(
required
=
false
,
value
=
"channelSerialNum"
)
String
channelSerialNum
,
@RequestParam
(
required
=
false
,
value
=
"startTime"
)
Date
startTime
,
@RequestParam
(
required
=
false
,
value
=
"endTime"
)
Date
endTime
,
@RequestParam
(
required
=
false
,
value
=
"recordCount"
,
defaultValue
=
"1"
)
Integer
recordCount
@RequestParam
(
required
=
false
,
value
=
"recordCount"
,
defaultValue
=
"1"
)
Integer
recordCount
,
@RequestParam
(
required
=
false
,
value
=
"maxRecordCount"
)
Integer
maxRecordCount
)
{
List
<
Future
<
JsonMessageUtil
.
JsonMessage
>>
responses
=
new
LinkedList
<>();
if
(
SEND_DATA
)
{
...
...
@@ -87,10 +88,13 @@ public class KeliuController {
List
<
FaceRecognition
>
faceRecognitionList
=
new
ArrayList
<>();
faceRecognitionMap
.
forEach
((
k
,
v
)
->
{
if
(
v
.
size
()
>=
recordCount
)
{
if
(
maxRecordCount
!=
null
&&
v
.
size
()
>
maxRecordCount
)
{
return
;
}
faceRecognitionList
.
addAll
(
v
);
}
});
log
.
info
(
"上传数据量
:"
+
faceRecognitionList
.
size
());
log
.
info
(
"上传数据量
{}"
,
faceRecognitionList
.
size
());
for
(
FaceRecognition
faceRecognition
:
faceRecognitionList
)
{
Future
<
JsonMessageUtil
.
JsonMessage
>
submit
=
threadPoolExecutor
.
submit
(()
->
{
try
{
...
...
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