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 59619fb9
authored
Jul 15, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
284b15d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
label-platform/src/main/java/com/viontech/label/platform/controller/web/ReidController.java
label-platform/src/main/java/com/viontech/label/platform/controller/web/ReidController.java
View file @
59619fb
...
...
@@ -99,7 +99,7 @@ public class ReidController {
* @param packId 图包id
*/
@GetMapping
(
"/mergeTo"
)
public
Object
mergeTo
(
@RequestParam
Long
[]
picIdArr
,
@RequestParam
String
personUnid
,
@RequestParam
String
currentPerson
,
@RequestParam
Long
packId
)
{
public
Object
mergeTo
(
@RequestParam
Long
[]
picIdArr
,
@RequestParam
String
personUnid
,
@RequestParam
(
required
=
false
)
String
currentPerson
,
@RequestParam
Long
packId
)
{
if
(
picIdArr
.
length
<=
0
||
personUnid
==
null
)
{
return
JsonMessageUtil
.
getErrorJsonMsg
(
"参数错误"
);
}
...
...
@@ -118,7 +118,7 @@ public class ReidController {
* @param packId 图包id
*/
@GetMapping
(
"/mergePerson"
)
public
Object
mergePerson
(
@RequestParam
String
[]
personUnidArr
,
@RequestParam
String
currentPerson
,
@RequestParam
Long
packId
)
{
public
Object
mergePerson
(
@RequestParam
String
[]
personUnidArr
,
@RequestParam
(
required
=
false
)
String
currentPerson
,
@RequestParam
Long
packId
)
{
if
(
personUnidArr
.
length
<=
1
)
{
return
JsonMessageUtil
.
getSuccessJsonMsg
(
"所选项过少"
);
}
...
...
@@ -150,7 +150,7 @@ public class ReidController {
* @param size 获取相似的人的数量
*/
@GetMapping
(
"/getSimilarPerson"
)
public
Object
getSimilarPerson
(
@RequestParam
Long
[]
picIdArr
,
@RequestParam
Long
packId
,
@RequestParam
Long
size
,
@RequestParam
Integer
timeInterval
)
{
public
Object
getSimilarPerson
(
@RequestParam
Long
[]
picIdArr
,
@RequestParam
Long
packId
,
@RequestParam
Long
size
,
@RequestParam
(
required
=
false
)
Integer
timeInterval
)
{
Map
<
String
,
List
<
Pic
>>
similarPerson
=
reidService
.
getSimilarPerson
(
picIdArr
,
packId
,
size
,
timeInterval
);
return
JsonMessageUtil
.
getSuccessJsonMsg
(
"success"
,
similarPerson
);
...
...
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