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
d4dc3a2a
Commit
d4dc3a2a
authored
Jan 29, 2026
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.7.19-离职相关
parent
c8cc065d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
30 deletions
+23
-30
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+23
-30
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
d4dc3a2a
...
@@ -1984,21 +1984,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -1984,21 +1984,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
StringBuilder
failueInfo
=
new
StringBuilder
();
StringBuilder
failueInfo
=
new
StringBuilder
();
workInfo
.
append
(
"合同终止成功,"
);
workInfo
.
append
(
"合同终止成功,"
);
//该项目下其他在用的合同统一更新成不在用
//该项目下其他在用的合同统一更新成不在用
contractInfoList
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
doOtherContract
(
contract
,
user
);
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getEmpId
,
contract
.
getEmpId
())
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
contract
.
getSettleDomain
())
.
eq
(
TEmployeeContractInfo:
:
getInUse
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeContractInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
ne
(
TEmployeeContractInfo:
:
getId
,
contract
.
getId
()));
if
(
Common
.
isNotNull
(
contractInfoList
))
{
for
(
TEmployeeContractInfo
contractInfo1
:
contractInfoList
)
{
contractInfo1
.
setInUse
(
CommonConstants
.
ONE_STRING
);
contractInfo1
.
setAuditUserName
(
user
.
getNickname
());
baseMapper
.
updateById
(
contractInfo1
);
//增加审核记录
this
.
setAuditInfoNew
(
contractInfo1
);
}
}
//在途的合同更新为审核不通过
//在途的合同更新为审核不通过
contractInfoListZt
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
contractInfoListZt
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getEmpId
,
contract
.
getEmpId
())
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getEmpId
,
contract
.
getEmpId
())
...
@@ -2335,21 +2321,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -2335,21 +2321,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
StringBuilder
failueInfo
=
new
StringBuilder
();
StringBuilder
failueInfo
=
new
StringBuilder
();
workInfo
.
append
(
"合同终止成功,"
);
workInfo
.
append
(
"合同终止成功,"
);
//该项目下其他在用的合同统一更新成不在用
//该项目下其他在用的合同统一更新成不在用
List
<
TEmployeeContractInfo
>
contractInfoList
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
doOtherContract
(
contractInfo
,
user
);
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getEmpId
,
contractInfo
.
getEmpId
())
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
contractInfo
.
getSettleDomain
())
.
eq
(
TEmployeeContractInfo:
:
getInUse
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeContractInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
ne
(
TEmployeeContractInfo:
:
getId
,
contractInfo
.
getId
()));
if
(
Common
.
isNotNull
(
contractInfoList
))
{
for
(
TEmployeeContractInfo
contractInfo1
:
contractInfoList
)
{
contractInfo1
.
setInUse
(
CommonConstants
.
ONE_STRING
);
contractInfo1
.
setAuditUserName
(
user
.
getNickname
());
baseMapper
.
updateById
(
contractInfo1
);
//增加审核记录
this
.
setAuditInfoNew
(
contractInfo1
);
}
}
//在途的合同更新为审核不通过
//在途的合同更新为审核不通过
List
<
TEmployeeContractInfo
>
contractInfoListZt
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
List
<
TEmployeeContractInfo
>
contractInfoListZt
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getEmpId
,
contractInfo
.
getEmpId
())
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getEmpId
,
contractInfo
.
getEmpId
())
...
@@ -2455,6 +2427,27 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -2455,6 +2427,27 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
}
}
}
}
// 同步处理其他合同
private
void
doOtherContract
(
TEmployeeContractInfo
contractInfo
,
YifuUser
user
)
{
List
<
TEmployeeContractInfo
>
contractInfoList
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
contractInfo
.
getEmpIdcard
())
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
contractInfo
.
getSettleDomain
())
.
eq
(
TEmployeeContractInfo:
:
getInUse
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeContractInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
ne
(
TEmployeeContractInfo:
:
getId
,
contractInfo
.
getId
()));
if
(
Common
.
isNotNull
(
contractInfoList
))
{
for
(
TEmployeeContractInfo
contractInfo1
:
contractInfoList
)
{
contractInfo1
.
setInUse
(
CommonConstants
.
ONE_STRING
);
contractInfo1
.
setAuditStatus
(
CommonConstants
.
TWO_INT
);
contractInfo1
.
setAuditUserName
(
user
.
getNickname
());
baseMapper
.
updateById
(
contractInfo1
);
//增加审核记录
this
.
setAuditInfoNew
(
contractInfo1
);
this
.
sendLeave
(
contractInfo1
.
getId
(),
CommonConstants
.
EIGHT_STRING
,
CommonConstants
.
ONE_STRING
,
"终止合同联动"
,
user
);
}
}
}
//更新瓜子offer状态
//更新瓜子offer状态
@Override
@Override
public
void
updateGzOfferStatus
(
TEmployeeContractInfo
contractInfo
,
String
preStatus
,
String
updStatus
,
String
userId
,
String
nickname
)
{
public
void
updateGzOfferStatus
(
TEmployeeContractInfo
contractInfo
,
String
preStatus
,
String
updStatus
,
String
userId
,
String
nickname
)
{
...
...
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