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
bdccabfe
Commit
bdccabfe
authored
Aug 23, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.5.7-划转,减项的可划转
parent
66036e9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+8
-8
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
bdccabfe
...
...
@@ -435,13 +435,13 @@ 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-21 16:31:18 目标项目是否已减项false:否
boolean
isSubtraction
=
false
;
// hgw 2023-8-21 16:31:18 目标项目是否已减项false:否
。——2023-8-23 18:02:57 改为 目标的单个服务项 已派减,可以划过去
//boolean isSubtraction = false
if
(
Common
.
isNotNull
(
newEmpProject
)
&&
Common
.
isNotNull
(
newEmpProject
.
getProjectStatus
())
&&
newEmpProject
.
getProjectStatus
().
intValue
()
==
CommonConstants
.
ONE_INT
){
isSubtraction
=
true
;
//return R.failed("目标项目档案已减项,请复项后重新划转!")
//isSubtraction = true
return
R
.
failed
(
"目标项目档案已减项,请复项后重新划转!"
);
}
//社保公积金派单处需要直接修改为最新的项目
//社保预估库、缴费库、对比库、代理差额库,需要同步修改未结算(并且满足这个条件:数据 生成月≥此处划转起始月)的数据,已结算数据不变更;
...
...
@@ -575,10 +575,10 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
}
}
}
if
(
isSubtraction
)
{
oldEmpProject
.
setProjectStatus
(
CommonConstants
.
ONE_INT
)
;
newEmpProject
.
setProjectStatus
(
CommonConstants
.
ZERO_INT
)
;
}
/*
if (isSubtraction) {
oldEmpProject.setProjectStatus(CommonConstants.ONE_INT)
newEmpProject.setProjectStatus(CommonConstants.ZERO_INT)
}
*/
// 变更老的项目档案
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