Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-mindworkplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ccfc0eec
authored
Dec 12, 2025
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(sop): 修复任务插入逻辑避免重复添加员工记录
1 parent
eeb97d25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopTaskInfoService.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/sop/SopTaskInfoService.java
View file @
ccfc0ee
...
...
@@ -354,10 +354,12 @@ public class SopTaskInfoService {
Integer
period
=
sopConfig
.
getStudyDay
();
List
<
SopTaskInfo
>
insertList
=
new
ArrayList
<>();
for
(
DateService
.
ItemDetail
indicatorDetail
:
staffIndicatorInfoList
)
{
if
(
uuidSet
.
contains
(
indicatorDetail
.
getStaffId
()
+
indicatorDetail
.
getMerchantId
()))
{
String
key
=
indicatorDetail
.
getStaffId
()
+
indicatorDetail
.
getMerchantId
();
if
(
uuidSet
.
contains
(
key
))
{
log
.
info
(
"该员工最新记录存在未结束(进行中,未改善)的阶段任务, staffId: {},merchantId: {}"
,
indicatorDetail
.
getStaffId
(),
indicatorDetail
.
getMerchantId
());
continue
;
}
uuidSet
.
add
(
key
);
SopTaskInfo
sopTaskInfo
=
new
SopTaskInfo
();
sopTaskInfo
.
setDeletedFlag
(
DeleteFlagEnum
.
N
.
getValue
());
sopTaskInfo
.
setCreatedDate
(
date
);
...
...
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