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
39c780e9
Commit
39c780e9
authored
Aug 01, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量办理 100%
parent
618f373d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
50 deletions
+49
-50
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+49
-50
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
39c780e9
...
...
@@ -2473,7 +2473,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isEmpty
(
socialTypeRemark
.
toString
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
typeSub
)
&&
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getType
())
&&
Common
.
is
NotNull
(
socialType
))
{
&&
Common
.
is
Empty
(
socialType
))
{
continue
;
}
socialInfo
=
socialMapper
.
selectById
(
dis
.
getSocialId
());
...
...
@@ -2519,7 +2519,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
temp
.
append
(
DispatchConstants
.
DISPATCH_HANDLE_FAIL
);
initAuditInfo
(
auditInfo
,
(
temp
+
handleRemark
),
handleStatus
,
user
,
temp
.
toString
());
}
dis
.
setSocialHandleStatus
(
socialInfo
.
getHandleStatus
());
auditInfo
.
setSocialId
(
dis
.
getId
());
}
else
{
errorList
.
add
(
new
ErrorMessage
(-
1
,
"找不到对应员工社保派增派单数据:"
+
dis
.
getEmpName
()));
...
...
@@ -2653,56 +2652,56 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
continue
;
}
}
//更新派单状态
if
(
Common
.
isNotNull
(
auditInfo
))
{
//派增判断
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getType
()))
{
if
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getSocialHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getSocialHandleStatus
()))
&&
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getFundHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getFundHandleStatus
()))))
{
//办理成功
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
if
(
Common
.
isEmpty
(
dis
.
getSocialHandleStatus
())
&&
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getFundHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getFundHandleStatus
()))))
{
//办理成功
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
if
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getSocialHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getSocialHandleStatus
()))
&&
Common
.
isEmpty
(
dis
.
getFundHandleStatus
()))
{
//办理成功
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
//派减判断
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getType
()))
{
if
(
!((
Common
.
isNotNull
(
socialInfo
)
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getHandleStatus
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getHandleStatus
()))
||
(
Common
.
isEmpty
(
providentFund
)
&&
CommonConstants
.
ZERO_STRING
.
equals
(
providentFund
.
getHandleStatus
())))
)
{
//办理成功或失败 更新为办理完结 2020-05-26
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
}
//更新派单状态
if
(
Common
.
isNotNull
(
auditInfo
))
{
//派增判断
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getType
()))
{
if
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getSocialHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getSocialHandleStatus
()))
&&
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getFundHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getFundHandleStatus
()))))
{
//办理成功
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
if
(
CommonConstants
.
ZERO_INT
==
flag
)
{
auditInfo
.
setAuditStatus
(
CommonConstants
.
SIX_STRING
);
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
)
{
auditInfo
.
setAuditStatus
(
CommonConstants
.
FIVE_STRING
);
if
(
Common
.
isEmpty
(
dis
.
getSocialHandleStatus
())
&&
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getFundHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getFundHandleStatus
()))))
{
//办理成功
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
if
((
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getSocialHandleStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
dis
.
getSocialHandleStatus
()))
&&
Common
.
isEmpty
(
dis
.
getFundHandleStatus
()))
{
//办理成功
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
//派减判断
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
dis
.
getType
()))
{
if
(
!((
Common
.
isNotNull
(
socialInfo
)
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getHandleStatus
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getHandleStatus
()))
||
(
Common
.
isEmpty
(
providentFund
)
&&
CommonConstants
.
ZERO_STRING
.
equals
(
providentFund
.
getHandleStatus
())))
)
{
//办理成功或失败 更新为办理完结 2020-05-26
dis
.
setStatus
(
CommonConstants
.
FOUR_STRING
);
}
dis
.
setHandleRemark
(
null
==
handleRemark
?
""
:
handleRemark
);
//新增办理记录信息
auditInfo
.
setDispatchInfoId
(
dis
.
getId
());
auditInfo
.
setEmpIdcard
(
dis
.
getEmpIdcard
());
auditInfoMapper
.
insert
(
auditInfo
);
baseMapper
.
updateById
(
dis
);
}
else
{
errorList
.
add
(
new
ErrorMessage
(-
1
,
"派单数据错误!"
));
}
if
(
CommonConstants
.
ZERO_INT
==
flag
)
{
auditInfo
.
setAuditStatus
(
CommonConstants
.
SIX_STRING
);
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
)
{
auditInfo
.
setAuditStatus
(
CommonConstants
.
FIVE_STRING
);
}
dis
.
setHandleRemark
(
null
==
handleRemark
?
""
:
handleRemark
);
//新增办理记录信息
auditInfo
.
setDispatchInfoId
(
dis
.
getId
());
auditInfo
.
setEmpIdcard
(
dis
.
getEmpIdcard
());
auditInfoMapper
.
insert
(
auditInfo
);
baseMapper
.
updateById
(
dis
);
}
else
{
errorList
.
add
(
new
ErrorMessage
(-
1
,
"派单数据错误!"
));
}
}
}
catch
(
Exception
e
){
...
...
@@ -2811,7 +2810,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialInfo
.
setPensionHandle
(
ifNotEquals
(
CommonConstants
.
ZERO_INT
,
flag
,
CommonConstants
.
ONE_STRING
,
CommonConstants
.
TWO_STRING
));
sf
.
setPensionHandle
(
ifNotEquals
(
CommonConstants
.
ZERO_INT
,
flag
,
CommonConstants
.
ONE_STRING
,
CommonConstants
.
TWO_STRING
));
}
if
(
socialType
.
indexOf
(
CommonConstants
.
T
EN
_STRING
)
>
CommonConstants
.
ZERO_INT
if
(
socialType
.
indexOf
(
CommonConstants
.
T
WO
_STRING
)
>
CommonConstants
.
ZERO_INT
&&
(
Common
.
isEmpty
(
socialInfo
.
getMedicalHandle
())
||
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getMedicalHandle
()))){
socialInfo
.
setMedicalHandle
(
ifNotEquals
(
CommonConstants
.
ZERO_INT
,
flag
,
CommonConstants
.
ONE_STRING
,
CommonConstants
.
TWO_STRING
));
...
...
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