Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
db6a016f
Commit
db6a016f
authored
Jul 04, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.6-预入职相关_先删后加
parent
158a6764
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
TPreEmpMainServiceImpl.java
...v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
+10
-8
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
View file @
db6a016f
...
@@ -1313,17 +1313,19 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
...
@@ -1313,17 +1313,19 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
if
(
attaList
!=
null
)
{
if
(
attaList
!=
null
)
{
// 先删除其他信息
// 先删除其他信息
tAttaInfoService
.
deleteByDomainId
(
empId
);
tAttaInfoService
.
deleteByDomainId
(
empId
);
TAttaInfo
attaEmp
;
List
<
TAttaInfo
>
attaEmpList
=
new
ArrayList
<>();
for
(
TAttaInfo
atta
:
attaList
)
{
for
(
TAttaInfo
atta
:
attaList
)
{
if
(
Common
.
isEmpty
(
atta
.
getDomainId
()))
{
attaEmp
=
new
TAttaInfo
();
atta
.
setDomainId
(
empId
);
BeanUtil
.
copyProperties
(
atta
,
attaEmp
,
ID
);
if
(
Common
.
isNotNull
(
atta
.
getCreateBy
()))
{
attaEmp
.
setDomainId
(
empId
);
atta
.
setCreateBy
(
user
.
getId
());
attaEmp
.
setCreateBy
(
user
.
getId
());
atta
.
setCreateName
(
user
.
getNickname
());
attaEmp
.
setCreateName
(
user
.
getNickname
());
atta
.
setCreateTime
(
LocalDateTime
.
now
());
attaEmp
.
setCreateTime
(
LocalDateTime
.
now
());
}
attaEmpList
.
add
(
attaEmp
);
}
}
}
tAttaInfoService
.
saveOrUpdateBatch
(
attaList
);
tAttaInfoService
.
saveOrUpdateBatch
(
attaList
);
tAttaInfoService
.
saveBatch
(
attaEmpList
);
}
}
return
R
.
ok
(
"成功!"
);
return
R
.
ok
(
"成功!"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment