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
ad3a4385
Commit
ad3a4385
authored
May 26, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
項目檔案劃轉
parent
14360dcf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
16 deletions
+24
-16
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+24
-16
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
ad3a4385
...
...
@@ -420,6 +420,7 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
newEmpProject
=
new
TEmployeeProject
();
BeanUtil
.
copyProperties
(
oldEmpProject
,
newEmpProject
);
newEmpProject
.
setId
(
null
);
newEmpProject
.
setEmpNo
(
tEmployeeProjectService
.
getEmpNo
(
newEmpProject
.
getDeptNo
()));
newEmpProject
.
setDeptId
(
vo
.
getNewDeptId
());
newEmpProject
.
setDeptName
(
vo
.
getNewDeptName
());
newEmpProject
.
setDeptNo
(
vo
.
getNewDeptNo
());
...
...
@@ -430,7 +431,14 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
newEmpProject
.
setBusinessSecondType
(
tSettleDomain
.
getBusinessSecondType
());
newEmpProject
.
setBusinessThirdType
(
tSettleDomain
.
getBusinessThirdType
());
newEmpProject
.
setInsuranceStatus
(
null
);
newEmpProject
.
setSocialStatus
(
null
);
newEmpProject
.
setSocialProvince
(
null
);
newEmpProject
.
setSocialCity
(
null
);
newEmpProject
.
setSocialTown
(
null
);
newEmpProject
.
setFundStatus
(
null
);
newEmpProject
.
setContractStatus
(
null
);
newEmpProject
.
setContractType
(
null
);
}
updateTEmployeeProject
.
setDeptName
(
vo
.
getNewDeptName
());
updateTEmployeeProject
.
setDeptNo
(
vo
.
getNewDeptNo
());
updateTEmployeeProject
.
setDeptId
(
vo
.
getNewDeptId
());
...
...
@@ -440,7 +448,6 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
updateTEmployeeProject
.
setBusinessPrimaryType
(
tSettleDomain
.
getBusinessPrimaryType
());
updateTEmployeeProject
.
setBusinessSecondType
(
tSettleDomain
.
getBusinessSecondType
());
updateTEmployeeProject
.
setBusinessThirdType
(
tSettleDomain
.
getBusinessThirdType
());
}
// 记录变更日志
tEmployeeLogService
.
saveModificationRecord
(
CommonConstants
.
dingleDigitIntArray
[
1
],
""
,
updateTEmployeeProject
.
getId
(),
oldEmpProject
,
updateTEmployeeProject
);
updateTEmployeeProject
.
setOdlDeptId
(
oldEmpProject
.
getDeptId
());
...
...
@@ -456,8 +463,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
updatesf
.
setUnitName
(
updateTEmployeeProject
.
getUnitName
());
// 处理社保 目标项目档案已有项目档案不做处理
if
(
vo
.
getChangeItems
().
indexOf
(
CommonConstants
.
ONE_STRING
)
>=
CommonConstants
.
ZERO_INT
)
{
if
(
!(
Common
.
isEmpty
(
newEmpProject
.
getSocialStatus
())
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getSocialStatus
())
)
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getSocialStatus
())
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getSocialStatus
()){
newEmpProject
.
setSocialStatus
(
oldEmpProject
.
getSocialStatus
());
newEmpProject
.
setSocialProvince
(
oldEmpProject
.
getSocialProvince
());
newEmpProject
.
setSocialCity
(
oldEmpProject
.
getSocialCity
());
...
...
@@ -475,8 +482,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
}
// 处理公积金 如果目标项目档案已存在公积金 不划转
if
(
vo
.
getChangeItems
().
indexOf
(
CommonConstants
.
TWO_STRING
)
>=
CommonConstants
.
ZERO_INT
)
{
if
(
!(
Common
.
isEmpty
(
newEmpProject
.
getFundStatus
())
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getFundStatus
())
)
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getFundStatus
())
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getFundStatus
()){
newEmpProject
.
setFundStatus
(
oldEmpProject
.
getFundStatus
());
updatesf
.
setFlag
(
CommonConstants
.
ONE_STRING
);
socialDaprUtils
.
updateSocialAndFoundInfo
(
updatesf
);
...
...
@@ -488,8 +495,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
}
// 处理員工合同 目标 已有合同状态 不在处理合同划转
if
(
vo
.
getChangeItems
().
indexOf
(
CommonConstants
.
ZERO_STRING
)
>=
CommonConstants
.
ZERO_INT
){
if
(
!(
Common
.
isEmpty
(
newEmpProject
.
getContractStatus
())
||
CommonConstants
.
ZERO_INT
!=
newEmpProject
.
getContractStatus
())
)
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getContractStatus
())
||
CommonConstants
.
ZERO_INT
!=
newEmpProject
.
getContractStatus
()){
newEmpProject
.
setContractStatus
(
oldEmpProject
.
getContractStatus
());
newEmpProject
.
setContractType
(
oldEmpProject
.
getContractType
());
// 合同同步划转---只划转在用合同 fxj 2023-03-06
...
...
@@ -506,6 +513,7 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
tEmployeeProjectService
.
saveOrUpdate
(
newEmpProject
);
//同步减项老项目档案
if
(
CommonConstants
.
ONE_STRING
.
equals
(
vo
.
getChangeType
())){
oldEmpProject
.
setIsLeaveEmployee
(
CommonConstants
.
ONE_INT
);
R
res
=
tEmployeeProjectService
.
deleteEmpPro
(
oldEmpProject
);
resStr
.
append
(
res
.
getMsg
());
}
...
...
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