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
56221aab
Commit
56221aab
authored
Aug 24, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.5.7-划转,减项的可划转-项目档案,划转成功
parent
1ea8e33b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+8
-6
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
56221aab
...
...
@@ -435,8 +435,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
TEmployeeProject
newEmpProject
=
tEmployeeProjectService
.
getOne
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getEmpIdcard
,
vo
.
getEmpIdcard
()).
eq
(
TEmployeeProject:
:
getDeptNo
,
vo
.
getNewDeptNo
())
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
STATUS_NORMAL
));
// hgw 2023-8-2
1 16:31:18 目标项目是否已减项false:否。——2023-8-23 18:02:57 改为 目标的单个服务项 已派减,可以划过去
//boolean isSubtraction = false
// hgw 2023-8-2
4 16:07:01 值为3,表示什么服务都没有,加提示语:项目档案,划转成功
int
isNoService
=
0
;
if
(
Common
.
isNotNull
(
newEmpProject
)
&&
Common
.
isNotNull
(
newEmpProject
.
getProjectStatus
())
&&
newEmpProject
.
getProjectStatus
().
intValue
()
==
CommonConstants
.
ONE_INT
){
...
...
@@ -516,6 +516,7 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
if
(
vo
.
getChangeItems
().
indexOf
(
CommonConstants
.
ONE_STRING
)
>=
CommonConstants
.
ZERO_INT
)
{
if
(
Common
.
isEmpty
(
oldEmpProject
.
getSocialStatus
())
||
CommonConstants
.
ZERO_INT
==
oldEmpProject
.
getSocialStatus
()){
isNoService
++;
resStr
.
append
(
"社保项不存在,无法划转! <br>"
);
}
else
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getSocialStatus
())
...
...
@@ -541,6 +542,7 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
if
(
vo
.
getChangeItems
().
indexOf
(
CommonConstants
.
TWO_STRING
)
>=
CommonConstants
.
ZERO_INT
)
{
if
(
Common
.
isEmpty
(
oldEmpProject
.
getFundStatus
())
||
CommonConstants
.
ZERO_INT
==
oldEmpProject
.
getFundStatus
()){
isNoService
++;
resStr
.
append
(
"公积金项不存在,无法划转! <br>"
);
}
else
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getFundStatus
())
...
...
@@ -560,6 +562,7 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
if
(
vo
.
getChangeItems
().
indexOf
(
CommonConstants
.
ZERO_STRING
)
>=
CommonConstants
.
ZERO_INT
){
if
(
Common
.
isEmpty
(
oldEmpProject
.
getContractStatus
())
||
CommonConstants
.
ZERO_INT
==
oldEmpProject
.
getContractStatus
()){
isNoService
++;
resStr
.
append
(
"员工合同不存在,无法划转! <br>"
);
}
else
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getContractStatus
())
...
...
@@ -575,10 +578,9 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
}
}
}
/*if (isSubtraction) {
oldEmpProject.setProjectStatus(CommonConstants.ONE_INT)
newEmpProject.setProjectStatus(CommonConstants.ZERO_INT)
}*/
if
(
isNoService
==
3
)
{
resStr
.
append
(
"项目档案,划转成功! <br>"
);
}
// 变更老的项目档案
tEmployeeProjectService
.
updateChangeById
(
oldEmpProject
);
//新增或变更新的项目档案
...
...
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