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
c6bcd6c6
Commit
c6bcd6c6
authored
Jul 08, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.6-预入职相关_导出优化
parent
c63905b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
TPreEmpMainServiceImpl.java
...v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
+6
-3
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
View file @
c6bcd6c6
...
@@ -846,12 +846,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
...
@@ -846,12 +846,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
if
(
attaList
!=
null
)
{
if
(
attaList
!=
null
)
{
tAttaInfoService
.
deleteByDomainId
(
tPreEmpEducation
.
getId
());
tAttaInfoService
.
deleteByDomainId
(
tPreEmpEducation
.
getId
());
for
(
TAttaInfo
atta
:
attaList
)
{
for
(
TAttaInfo
atta
:
attaList
)
{
atta
.
setId
(
null
);
atta
.
setDomainId
(
tPreEmpEducation
.
getId
());
atta
.
setDomainId
(
tPreEmpEducation
.
getId
());
atta
.
setCreateBy
(
user
.
getId
());
atta
.
setCreateBy
(
user
.
getId
());
atta
.
setCreateName
(
user
.
getNickname
());
atta
.
setCreateName
(
user
.
getNickname
());
atta
.
setCreateTime
(
LocalDateTime
.
now
());
atta
.
setCreateTime
(
LocalDateTime
.
now
());
}
}
tAttaInfoService
.
save
OrUpdate
Batch
(
attaList
);
tAttaInfoService
.
saveBatch
(
attaList
);
}
}
}
}
}
}
...
@@ -921,12 +922,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
...
@@ -921,12 +922,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
if
(
attaList
!=
null
)
{
if
(
attaList
!=
null
)
{
tAttaInfoService
.
deleteByDomainId
(
info
.
getId
());
tAttaInfoService
.
deleteByDomainId
(
info
.
getId
());
for
(
TAttaInfo
atta
:
attaList
)
{
for
(
TAttaInfo
atta
:
attaList
)
{
atta
.
setId
(
null
);
atta
.
setDomainId
(
info
.
getId
());
atta
.
setDomainId
(
info
.
getId
());
atta
.
setCreateBy
(
user
.
getId
());
atta
.
setCreateBy
(
user
.
getId
());
atta
.
setCreateName
(
user
.
getNickname
());
atta
.
setCreateName
(
user
.
getNickname
());
atta
.
setCreateTime
(
LocalDateTime
.
now
());
atta
.
setCreateTime
(
LocalDateTime
.
now
());
}
}
tAttaInfoService
.
save
OrUpdate
Batch
(
attaList
);
tAttaInfoService
.
saveBatch
(
attaList
);
}
}
}
}
}
}
...
@@ -950,12 +952,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
...
@@ -950,12 +952,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
// 先删除后增加
// 先删除后增加
tAttaInfoService
.
deleteByDomainId
(
mainId
);
tAttaInfoService
.
deleteByDomainId
(
mainId
);
for
(
TAttaInfo
info
:
attaInfoList
)
{
for
(
TAttaInfo
info
:
attaInfoList
)
{
info
.
setId
(
null
);
info
.
setDomainId
(
mainId
);
info
.
setDomainId
(
mainId
);
info
.
setCreateBy
(
user
.
getId
());
info
.
setCreateBy
(
user
.
getId
());
info
.
setCreateName
(
user
.
getNickname
());
info
.
setCreateName
(
user
.
getNickname
());
info
.
setCreateTime
(
LocalDateTime
.
now
());
info
.
setCreateTime
(
LocalDateTime
.
now
());
}
}
tAttaInfoService
.
save
OrUpdate
Batch
(
attaInfoList
);
tAttaInfoService
.
saveBatch
(
attaInfoList
);
}
}
}
}
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