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
124c57af
Commit
124c57af
authored
Jul 03, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.6-预入职相关_保存审核等
parent
ca848ad4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
TPreEmpMainServiceImpl.java
...v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
+22
-6
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
View file @
124c57af
...
...
@@ -1078,6 +1078,15 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
}
}
BeanUtil
.
copyProperties
(
tPreEmpEducation
,
tEmpEducation
,
ID
);
if
(
Common
.
isEmpty
(
tEmpEducation
.
getEmpCode
()))
{
tEmpEducation
.
setEmpCode
(
emp
.
getEmpCode
());
}
if
(
Common
.
isEmpty
(
tEmpEducation
.
getCreateBy
()))
{
tEmpEducation
.
setCreateBy
(
user
.
getId
());
}
if
(
Common
.
isEmpty
(
tEmpEducation
.
getCreateTime
()))
{
tEmpEducation
.
setCreateTime
(
LocalDateTime
.
now
());
}
tEmpEducation
.
setDeleteFlag
(
CommonConstants
.
STATUS_NORMAL
);
tEmpEducation
.
setEmpId
(
empId
);
if
(
Common
.
isNotNull
(
empIdCard
))
{
...
...
@@ -1143,6 +1152,9 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
BeanUtil
.
copyProperties
(
tPreEmpDisabilityInfo
,
tEmpDisabilityInfo
,
ID
);
tEmpDisabilityInfo
.
setDeleteFlag
(
CommonConstants
.
STATUS_NORMAL
);
tEmpDisabilityInfo
.
setEmpId
(
empId
);
if
(
Common
.
isEmpty
(
tEmpDisabilityInfo
.
getEmpCode
()))
{
tEmpDisabilityInfo
.
setEmpCode
(
emp
.
getEmpCode
());
}
tEmpDisabilityInfoService
.
saveOrUpdate
(
tEmpDisabilityInfo
);
}
...
...
@@ -1236,7 +1248,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
}
tAttaInfoService
.
saveOrUpdateBatch
(
attaList
);
}
return
R
.
ok
(
"
保存档案
成功!"
);
return
R
.
ok
(
"成功!"
);
}
// 2新增或更新项目
...
...
@@ -1650,16 +1662,20 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
auditLog
.
setAuditResult
(
status
);
R
<
PreEmpMainDetailVo
>
voR
=
this
.
getInfoById
(
id
);
PreEmpMainDetailVo
vo
=
null
;
if
(
voR
!=
null
&&
voR
.
getCode
()
==
CommonConstants
.
SUCCESS
)
{
// 转到更新档案去
vo
=
voR
.
getData
();
this
.
updateById
(
preEmpMain
);
PreEmpMainDetailVo
vo
=
voR
.
getData
();
tPreEmpMainLogService
.
save
(
auditLog
);
return
updateToEmployeeByPre
(
vo
);
this
.
updateById
(
preEmpMain
);
if
(
CommonConstants
.
FOUR_STRING
.
equals
(
status
))
{
return
updateToEmployeeByPre
(
vo
);
}
else
{
return
R
.
ok
(
"已审核"
);
}
}
else
{
return
R
.
failed
(
"未找到信息,未
更新
!"
);
return
R
.
failed
(
"未找到信息,未
审核
!"
);
}
}
@Override
...
...
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