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
4df9dcbc
Commit
4df9dcbc
authored
Aug 24, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.7' into MVP1.5.7
parents
c5f1ea14
548c8d40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
TEmployeeProject.java
.../cloud/plus/v1/yifu/archives/entity/TEmployeeProject.java
+2
-1
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+13
-11
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeProject.java
View file @
4df9dcbc
...
@@ -312,8 +312,9 @@ public class TEmployeeProject extends BaseEntity {
...
@@ -312,8 +312,9 @@ public class TEmployeeProject extends BaseEntity {
/**
/**
* 公积金状态(字典)
* 公积金状态(字典)
* 0无公积金;1处理中;2正常;3已派减
*/
*/
@Schema
(
description
=
"公积金状态(字典): 0
无公积金 1 处理中 2.部分购买 3.正常 4.
已派减"
)
@Schema
(
description
=
"公积金状态(字典): 0
无公积金;1处理中;2正常;3
已派减"
)
private
Integer
fundStatus
;
private
Integer
fundStatus
;
/**
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
4df9dcbc
...
@@ -435,13 +435,13 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
...
@@ -435,13 +435,13 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
TEmployeeProject
newEmpProject
=
tEmployeeProjectService
.
getOne
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
TEmployeeProject
newEmpProject
=
tEmployeeProjectService
.
getOne
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getEmpIdcard
,
vo
.
getEmpIdcard
()).
eq
(
TEmployeeProject:
:
getDeptNo
,
vo
.
getNewDeptNo
())
.
eq
(
TEmployeeProject:
:
getEmpIdcard
,
vo
.
getEmpIdcard
()).
eq
(
TEmployeeProject:
:
getDeptNo
,
vo
.
getNewDeptNo
())
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
STATUS_NORMAL
));
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
STATUS_NORMAL
));
// hgw 2023-8-21 16:31:18 目标项目是否已减项false:否
// hgw 2023-8-21 16:31:18 目标项目是否已减项false:否
。——2023-8-23 18:02:57 改为 目标的单个服务项 已派减,可以划过去
boolean
isSubtraction
=
false
;
//boolean isSubtraction = false
if
(
Common
.
isNotNull
(
newEmpProject
)
if
(
Common
.
isNotNull
(
newEmpProject
)
&&
Common
.
isNotNull
(
newEmpProject
.
getProjectStatus
())
&&
Common
.
isNotNull
(
newEmpProject
.
getProjectStatus
())
&&
newEmpProject
.
getProjectStatus
().
intValue
()
==
CommonConstants
.
ONE_INT
){
&&
newEmpProject
.
getProjectStatus
().
intValue
()
==
CommonConstants
.
ONE_INT
){
isSubtraction
=
true
;
//isSubtraction = true
//return R.failed("目标项目档案已减项,请复项后重新划转!")
return
R
.
failed
(
"目标项目档案已减项,请复项后重新划转!"
);
}
}
//社保公积金派单处需要直接修改为最新的项目
//社保公积金派单处需要直接修改为最新的项目
//社保预估库、缴费库、对比库、代理差额库,需要同步修改未结算(并且满足这个条件:数据 生成月≥此处划转起始月)的数据,已结算数据不变更;
//社保预估库、缴费库、对比库、代理差额库,需要同步修改未结算(并且满足这个条件:数据 生成月≥此处划转起始月)的数据,已结算数据不变更;
...
@@ -519,7 +519,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
...
@@ -519,7 +519,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
resStr
.
append
(
"社保项不存在,无法划转! <br>"
);
resStr
.
append
(
"社保项不存在,无法划转! <br>"
);
}
else
{
}
else
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getSocialStatus
())
if
(
Common
.
isEmpty
(
newEmpProject
.
getSocialStatus
())
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getSocialStatus
()){
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getSocialStatus
()
||
CommonConstants
.
FOUR_INT
==
newEmpProject
.
getSocialStatus
()){
newEmpProject
.
setSocialStatus
(
oldEmpProject
.
getSocialStatus
());
newEmpProject
.
setSocialStatus
(
oldEmpProject
.
getSocialStatus
());
newEmpProject
.
setSocialProvince
(
oldEmpProject
.
getSocialProvince
());
newEmpProject
.
setSocialProvince
(
oldEmpProject
.
getSocialProvince
());
newEmpProject
.
setSocialCity
(
oldEmpProject
.
getSocialCity
());
newEmpProject
.
setSocialCity
(
oldEmpProject
.
getSocialCity
());
...
@@ -543,13 +544,14 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
...
@@ -543,13 +544,14 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
resStr
.
append
(
"公积金项不存在,无法划转! <br>"
);
resStr
.
append
(
"公积金项不存在,无法划转! <br>"
);
}
else
{
}
else
{
if
(
Common
.
isEmpty
(
newEmpProject
.
getFundStatus
())
if
(
Common
.
isEmpty
(
newEmpProject
.
getFundStatus
())
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getFundStatus
()){
||
CommonConstants
.
ZERO_INT
==
newEmpProject
.
getFundStatus
()
||
CommonConstants
.
THREE_INT
==
newEmpProject
.
getFundStatus
()){
newEmpProject
.
setFundStatus
(
oldEmpProject
.
getFundStatus
());
newEmpProject
.
setFundStatus
(
oldEmpProject
.
getFundStatus
());
updatesf
.
setFlag
(
CommonConstants
.
ONE_STRING
);
updatesf
.
setFlag
(
CommonConstants
.
ONE_STRING
);
socialDaprUtils
.
updateSocialAndFoundInfo
(
updatesf
);
socialDaprUtils
.
updateSocialAndFoundInfo
(
updatesf
);
oldEmpProject
.
setFundStatus
(
CommonConstants
.
ZERO_INT
);
oldEmpProject
.
setFundStatus
(
CommonConstants
.
ZERO_INT
);
resStr
.
append
(
"公积金划转成功! <br>"
);
resStr
.
append
(
"公积金划转成功! <br>"
);
}
else
{
}
else
{
resStr
.
append
(
"目标项目档案存在公积金数据,公积金划转失败! <br>"
);
resStr
.
append
(
"目标项目档案存在公积金数据,公积金划转失败! <br>"
);
}
}
}
}
...
@@ -573,10 +575,10 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
...
@@ -573,10 +575,10 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
}
}
}
}
}
}
if
(
isSubtraction
)
{
/*
if (isSubtraction) {
oldEmpProject
.
setProjectStatus
(
CommonConstants
.
ONE_INT
)
;
oldEmpProject.setProjectStatus(CommonConstants.ONE_INT)
newEmpProject
.
setProjectStatus
(
CommonConstants
.
ZERO_INT
)
;
newEmpProject.setProjectStatus(CommonConstants.ZERO_INT)
}
}
*/
// 变更老的项目档案
// 变更老的项目档案
tEmployeeProjectService
.
updateChangeById
(
oldEmpProject
);
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