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 4f4ebf4d
authored
Aug 24, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完善
1 parent
4c06d2da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 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 @
4f4ebf4
...
@@ -286,16 +286,23 @@ public class ReidService {
...
@@ -286,16 +286,23 @@ public class ReidService {
*/
*/
public
void
setPackPure
(
String
personUnid
,
Long
packId
)
{
public
void
setPackPure
(
String
personUnid
,
Long
packId
)
{
PicExample
picExample
=
new
PicExample
();
PicExample
picExample
=
new
PicExample
();
picExample
.
createCriteria
().
andPersonUnidEqualTo
(
personUnid
);
picExample
.
createCriteria
().
andPersonUnidEqualTo
(
personUnid
)
.
andPackIdEqualTo
(
packId
)
;
List
<
Pic
>
pics
=
picService
.
selectByExample
(
picExample
);
List
<
Pic
>
pics
=
picService
.
selectByExample
(
picExample
);
if
(
pics
.
size
()
>
0
&&
pics
.
get
(
0
).
getStatus
().
equals
(
PicStatus
.
FINISH_LABELING
.
val
))
{
Set
<
Integer
>
status
=
pics
.
stream
().
map
(
Pic:
:
getStatus
).
collect
(
Collectors
.
toSet
());
throw
new
RuntimeException
(
"已经是完成状态了!"
);
}
Pic
pic
=
new
Pic
();
Pic
pic
=
new
Pic
();
pic
.
setStatus
(
PicStatus
.
FINISH_LABELING
.
val
);
pic
.
setStatus
(
PicStatus
.
FINISH_LABELING
.
val
);
if
(
status
.
contains
(
PicStatus
.
FINISH_LABELING
.
val
))
{
if
(
status
.
size
()
==
1
)
{
throw
new
RuntimeException
(
"已经是完成状态了!"
);
}
else
{
picService
.
updateByExampleSelective
(
pic
,
picExample
);
return
;
}
}
pic
.
setReidFinishUser
(
StpUtil
.
getLoginIdAsLong
());
pic
.
setReidFinishUser
(
StpUtil
.
getLoginIdAsLong
());
picService
.
updateByExampleSelective
(
pic
,
picExample
);
picService
.
updateByExampleSelective
(
pic
,
picExample
);
//删除缓存
//删除缓存
...
...
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