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
43b546c9
Commit
43b546c9
authored
Nov 29, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
30号版本:档案合同、商险、薪资状态;缴费库反馈列;合同提交的直接审核优化等
parent
af166cd3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+21
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
43b546c9
...
@@ -445,6 +445,27 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -445,6 +445,27 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
}
}
private
void
updateEmployeeContractStatus
(
TEmployeeContractInfo
tEmployeeContractInfo
)
{
private
void
updateEmployeeContractStatus
(
TEmployeeContractInfo
tEmployeeContractInfo
)
{
if
(!
CommonConstants
.
ZERO_STRING
.
equals
(
tEmployeeContractInfo
.
getInUse
()))
{
// 非作废、终止,本条变为在用
if
(
Common
.
isEmpty
(
tEmployeeContractInfo
.
getSituation
())
||
(!
EmployeeConstants
.
SITUATION_SIX
.
equals
(
tEmployeeContractInfo
.
getSituation
())
&&
!
EmployeeConstants
.
SITUATION_SEVEN
.
equals
(
tEmployeeContractInfo
.
getSituation
())))
{
// 其他变为不在用
baseMapper
.
updateInUseStatusById
(
tEmployeeContractInfo
.
getEmpId
(),
tEmployeeContractInfo
.
getDeptNo
(),
tEmployeeContractInfo
.
getId
(),
CommonConstants
.
ONE_STRING
);
tEmployeeContractInfo
.
setAuditTimeLast
(
LocalDateTime
.
now
());
tEmployeeContractInfo
.
setInUse
(
CommonConstants
.
ZERO_STRING
);
baseMapper
.
updateById
(
tEmployeeContractInfo
);
}
else
{
// 2022-7-22 16:54:12 产品倩倩与测试说,作废终止审核通过,仅将原先选择的合同不在用即可
if
(
Common
.
isNotNull
(
tEmployeeContractInfo
.
getOldContractId
()))
{
TEmployeeContractInfo
old
=
this
.
getById
(
tEmployeeContractInfo
.
getOldContractId
());
if
(
old
!=
null
&&
Common
.
isNotNull
(
old
.
getId
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
old
.
getInUse
()))
{
old
.
setInUse
(
CommonConstants
.
ONE_STRING
);
this
.
updateById
(
old
);
}
}
}
}
TEmployeeInfo
employeeInfo
=
tEmployeeInfoMapper
.
selectById
(
tEmployeeContractInfo
.
getEmpId
());
TEmployeeInfo
employeeInfo
=
tEmployeeInfoMapper
.
selectById
(
tEmployeeContractInfo
.
getEmpId
());
if
(
employeeInfo
!=
null
)
{
if
(
employeeInfo
!=
null
)
{
employeeInfo
.
setContractStatus
(
CommonConstants
.
ONE_INT
);
employeeInfo
.
setContractStatus
(
CommonConstants
.
ONE_INT
);
...
...
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