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
63354f37
Commit
63354f37
authored
Oct 24, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社保办理无对应办理项是 不生成办理记录。 主要是针对批量办理的场景
parent
ccb00d91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+23
-15
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
63354f37
...
@@ -3079,7 +3079,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -3079,7 +3079,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
StringBuilder
temp
=
new
StringBuilder
();
StringBuilder
temp
=
new
StringBuilder
();
// 预估库同步社保还是公积金的标志,0:全部;1仅社保;2仅公积金
// 预估库同步社保还是公积金的标志,0:全部;1仅社保;2仅公积金
int
forecastFlag
=
CommonConstants
.
ZERO_INT
;
int
forecastFlag
=
CommonConstants
.
ZERO_INT
;
// auditFlag 表示社保办理无办理项是不保存
boolean
auditFlag
=
true
;
for
(
TDispatchInfo
dis
:
disList
)
{
for
(
TDispatchInfo
dis
:
disList
)
{
auditFlag
=
true
;
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
typeSub
))
{
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
typeSub
))
{
forecastFlag
=
CommonConstants
.
ONE_INT
;
forecastFlag
=
CommonConstants
.
ONE_INT
;
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
typeSub
))
{
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
typeSub
))
{
...
@@ -3129,6 +3132,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -3129,6 +3132,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialMapper
.
updateById
(
socialInfo
);
socialMapper
.
updateById
(
socialInfo
);
dis
.
setSocialHandleRemark
(
ServiceUtil
.
ifNullToEmpty
(
handleRemark
));
dis
.
setSocialHandleRemark
(
ServiceUtil
.
ifNullToEmpty
(
handleRemark
));
auditFlag
=
Common
.
isNotNull
(
Common
.
isNullToString
(
socialTypeRemark
));
if
(
auditFlag
){
auditInfo
.
setType
(
CommonConstants
.
ONE_STRING
);
auditInfo
.
setType
(
CommonConstants
.
ONE_STRING
);
if
(
CommonConstants
.
ZERO_INT
==
flag
)
{
if
(
CommonConstants
.
ZERO_INT
==
flag
)
{
temp
.
setLength
(
CommonConstants
.
ZERO_INT
);
temp
.
setLength
(
CommonConstants
.
ZERO_INT
);
...
@@ -3144,6 +3149,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -3144,6 +3149,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
initAuditInfo
(
auditInfo
,
(
temp
+
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)),
CommonConstants
.
FOUR_STRING
,
user
,
temp
.
toString
(),
remark
);
initAuditInfo
(
auditInfo
,
(
temp
+
ServiceUtil
.
ifNullToEmpty
(
handleRemark
)),
CommonConstants
.
FOUR_STRING
,
user
,
temp
.
toString
(),
remark
);
}
}
auditInfo
.
setSocialId
(
dis
.
getId
());
auditInfo
.
setSocialId
(
dis
.
getId
());
}
}
else
{
}
else
{
errorList
.
add
(
new
ErrorMessage
(-
1
,
"找不到对应员工社保派增派单数据:"
+
dis
.
getEmpName
()));
errorList
.
add
(
new
ErrorMessage
(-
1
,
"找不到对应员工社保派增派单数据:"
+
dis
.
getEmpName
()));
continue
;
continue
;
...
@@ -3362,7 +3368,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -3362,7 +3368,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//新增办理记录信息
//新增办理记录信息
auditInfo
.
setDispatchInfoId
(
dis
.
getId
());
auditInfo
.
setDispatchInfoId
(
dis
.
getId
());
auditInfo
.
setEmpIdcard
(
dis
.
getEmpIdcard
());
auditInfo
.
setEmpIdcard
(
dis
.
getEmpIdcard
());
if
(
auditFlag
){
auditInfoMapper
.
insert
(
auditInfo
);
auditInfoMapper
.
insert
(
auditInfo
);
}
baseMapper
.
updateById
(
dis
);
baseMapper
.
updateById
(
dis
);
socialFundMapper
.
updateById
(
sf
);
socialFundMapper
.
updateById
(
sf
);
//1.派增办理失败 刷新预估数据
//1.派增办理失败 刷新预估数据
...
...
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