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
3782394e
Commit
3782394e
authored
Feb 09, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派减分项办理
parent
316bdc5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
114 additions
and
46 deletions
+114
-46
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+114
-46
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
3782394e
...
...
@@ -1267,26 +1267,38 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
StringBuffer
temp
=
new
StringBuffer
();
if
(
Common
.
isEmpty
(
socialFund
)){
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())){
if
(
Common
.
isNotNull
(
excel
.
getPensionStart
())){
if
(
Common
.
isEmpty
(
socialFund
.
getPensionHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialFund
.
getPensionHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getPensionHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_PENSION
);
}
if
(
Common
.
isNotNull
(
excel
.
getMedicalStart
())){
if
(
Common
.
isEmpty
(
socialFund
.
getMedicalHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialFund
.
getMedicalHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getMedicalHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_MEDICAL
);
}
if
(
Common
.
isNotNull
(
excel
.
getBirthStart
())){
}
if
(
Common
.
isEmpty
(
socialFund
.
getBirthHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialFund
.
getBirthHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getBirthHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_BIRTH
);
}
if
(
Common
.
isNotNull
(
excel
.
getWorkInjuryStart
())){
if
(
Common
.
isEmpty
(
socialFund
.
getWorkInjuryHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialFund
.
getWorkInjuryHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getWorkInjuryHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_INJURY
);
}
if
(
Common
.
isNotNull
(
excel
.
getUnemployStart
())){
if
(
Common
.
isEmpty
(
socialFund
.
getUnemployHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialFund
.
getUnemployHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getUnemployHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_UNEMP
);
}
if
(
Common
.
isNotNull
(
excel
.
getBigailmentStart
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialSet
.
getIsIllness
())){
if
((
Common
.
isEmpty
(
socialFund
.
getBigailmentHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialFund
.
getBigailmentHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getBigailmentHandle
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialSet
.
getIsIllness
()))
{
temp
.
append
(
DispatchConstants
.
DISPATCH_BIGMAILMENT
);
}
}
if
(
Common
.
isNotNull
(
excel
.
getProvidentHousehold
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_FUND
);
}
...
...
@@ -2758,23 +2770,29 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialFund
.
setSocialReduceStatus
(
CommonConstants
.
ZERO_STRING
);
socialFund
.
setSocialReduceStatus
(
CommonConstants
.
ZERO_STRING
);
socialFund
.
setSocialStatus
(
CommonConstants
.
SIX_STRING
);
// 养老办理状态:0待办理1办理成功2办理失败3已派减
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getPensionHandle
())){
// 养老办理状态:0待办理1办理成功2办理失败3已派减 4 派减失败
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getPensionHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialFund
.
getPensionHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_PENSION
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getMedicalHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getMedicalHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialFund
.
getMedicalHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_MEDICAL
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getWorkInjuryHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getWorkInjuryHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialFund
.
getWorkInjuryHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_INJURY
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getBirthHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getBirthHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialFund
.
getBirthHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_BIRTH
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getUnemployHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getUnemployHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialFund
.
getUnemployHandle
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_UNEMP
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getBigailmentHandle
())
if
((
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getBigailmentHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
socialFund
.
getBigailmentHandle
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialFund
.
getIsIllness
())
){
temp
.
append
(
DispatchConstants
.
DISPATCH_BIGMAILMENT
);
...
...
@@ -3151,13 +3169,22 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
||
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBirthHandle
())
||
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getUnemployHandle
())
||
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBigailmentHandle
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
sf
.
getIsIllness
())))
&&
!(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getPensionHandle
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getMedicalHandle
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBirthHandle
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getUnemployHandle
())
&&
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBigailmentHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getPensionHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getMedicalHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBirthHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getUnemployHandle
())
||
((
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBigailmentHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBigailmentHandle
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
sf
.
getIsIllness
()))
))
&&
!(
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getPensionHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getPensionHandle
()))
&&
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getMedicalHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getMedicalHandle
()))
&&
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getWorkInjuryHandle
()))
&&
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBirthHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBirthHandle
()))
&&
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getUnemployHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getUnemployHandle
()))
&&
((
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBigailmentHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBigailmentHandle
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
sf
.
getIsIllness
())));
if
(
flagTemp
){
sf
.
setSocialStatus
(
CommonConstants
.
FOUR_STRING
);
...
...
@@ -4000,18 +4027,27 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
private
void
initReduceStatus
(
TSocialInfo
socialInfo
,
TSocialFundInfo
sf
,
TDispatchInfo
dis
)
{
// 全部失败
if
((
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getPensionHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getPensionHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getPensionHandle
()))
&&
(
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getMedicalHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getMedicalHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getMedicalHandle
()))
&&
(
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getWorkInjuryHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getWorkInjuryHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getWorkInjuryHandle
()))
&&
(
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getBirthHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getBirthHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getBirthHandle
()))
&&
(
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getUnemployHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getUnemployHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getUnemployHandle
()))
&&
(
(
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getBigailmentHandle
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getIsIllness
()))
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))){
&&
(
(
(
CommonConstants
.
FOUR_STRING
.
equals
(
socialInfo
.
getBigailmentHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getBigailmentHandle
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getIsIllness
())
)
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))
){
socialInfo
.
setHandleStatus
(
CommonConstants
.
ONE_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
NINE_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
THREE_STRING
);
...
...
@@ -4021,18 +4057,26 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
// 全部成功
if
((
CommonConstants
.
THREE_STRING
.
equals
(
socialInfo
.
getPensionHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getPensionHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getPensionHandle
()))
&&
(
CommonConstants
.
THREE_STRING
.
equals
(
socialInfo
.
getMedicalHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getMedicalHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getMedicalHandle
()))
&&
(
CommonConstants
.
THREE_STRING
.
equals
(
socialInfo
.
getWorkInjuryHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getWorkInjuryHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getWorkInjuryHandle
()))
&&
(
CommonConstants
.
THREE_STRING
.
equals
(
socialInfo
.
getBirthHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getBirthHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getBirthHandle
()))
&&
(
CommonConstants
.
THREE_STRING
.
equals
(
socialInfo
.
getUnemployHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getUnemployHandle
())
||
Common
.
isEmpty
(
socialInfo
.
getUnemployHandle
()))
&&
(
(
CommonConstants
.
THREE_STRING
.
equals
(
socialInfo
.
getBigailmentHandle
())
&&
(
(
(
CommonConstants
.
THREE_STRING
.
equals
(
socialInfo
.
getBigailmentHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getBigailmentHandle
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getIsIllness
()))
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))){
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))
){
if
(
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getMedicalHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getPensionHandle
())
...
...
@@ -4272,11 +4316,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
boolean
flag
=
CommonConstants
.
THREE_STRING
.
equals
(
handleStatusTemp
);
if
(
socialType
.
contains
(
CommonConstants
.
ONE_STRING
))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getPensionHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getPensionHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getPensionHandle
())){
if
(
Common
.
isNotNull
(
socialInfo
.
getPensionHandle
())){
socialInfo
.
setPensionHandle
(
handleStatusTemp
);
sf
.
setPensionHandle
(
handleStatusTemp
);
if
(
flag
){
socialInfo
.
setPensionReduceStart
(
dis
.
getSocialReduceDate
());
}
}
sf
.
setPensionHandle
(
handleStatusTemp
);
if
(
flag
){
sf
.
setPensionReduceStart
(
dis
.
getSocialReduceDate
());
}
}
...
...
@@ -4285,11 +4333,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}*/
}
if
(
socialType
.
contains
(
CommonConstants
.
TWO_STRING
))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getMedicalHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getMedicalHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getMedicalHandle
())){
if
(
Common
.
isNotNull
(
socialInfo
.
getMedicalHandle
())){
socialInfo
.
setMedicalHandle
(
handleStatusTemp
);
sf
.
setMedicalHandle
(
handleStatusTemp
);
if
(
flag
){
socialInfo
.
setMedicalReduceStart
(
dis
.
getSocialReduceDate
());
}
}
sf
.
setMedicalHandle
(
handleStatusTemp
);
if
(
flag
){
sf
.
setMedicalReduceStart
(
dis
.
getSocialReduceDate
());
}
}
...
...
@@ -4298,11 +4350,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}*/
}
if
(
socialType
.
contains
(
CommonConstants
.
THREE_STRING
))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getUnemployHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getUnemployHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getUnemployHandle
())){
if
(
Common
.
isNotNull
(
socialInfo
.
getUnemployHandle
())){
socialInfo
.
setUnemployHandle
(
handleStatusTemp
);
sf
.
setUnemployHandle
(
handleStatusTemp
);
if
(
flag
){
socialInfo
.
setUnemployReduceStart
(
dis
.
getSocialReduceDate
());
}
}
sf
.
setUnemployHandle
(
handleStatusTemp
);
if
(
flag
){
sf
.
setUnemployReduceStart
(
dis
.
getSocialReduceDate
());
}
}
...
...
@@ -4311,11 +4367,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}*/
}
if
(
socialType
.
contains
(
CommonConstants
.
FOUR_STRING
))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getWorkInjuryHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())){
if
(
Common
.
isNotNull
(
socialInfo
.
getWorkInjuryHandle
())){
socialInfo
.
setWorkInjuryHandle
(
handleStatusTemp
);
sf
.
setWorkInjuryHandle
(
handleStatusTemp
);
if
(
flag
){
socialInfo
.
setWorkInjuryReduceStart
(
dis
.
getSocialReduceDate
());
}
}
sf
.
setWorkInjuryHandle
(
handleStatusTemp
);
if
(
flag
){
sf
.
setWorkInjuryReduceStart
(
dis
.
getSocialReduceDate
());
}
}
...
...
@@ -4324,11 +4384,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}*/
}
if
(
socialType
.
contains
(
CommonConstants
.
FIVE_STRING
))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getBirthHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBirthHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBirthHandle
())){
if
(
Common
.
isNotNull
(
socialInfo
.
getBirthHandle
())){
socialInfo
.
setBirthHandle
(
handleStatusTemp
);
sf
.
setBirthHandle
(
handleStatusTemp
);
if
(
flag
){
socialInfo
.
setBirthReduceStart
(
dis
.
getSocialReduceDate
());
}
}
sf
.
setBirthHandle
(
handleStatusTemp
);
if
(
flag
){
sf
.
setBirthReduceStart
(
dis
.
getSocialReduceDate
());
}
}
...
...
@@ -4338,11 +4402,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
if
(
socialType
.
contains
(
CommonConstants
.
SIX_STRING
)
&&
CommonConstants
.
ZERO_STRING
.
equals
(
sf
.
getIsIllness
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getBigailmentHandle
())){
if
(
CommonConstants
.
ONE_STRING
.
equals
(
sf
.
getBigailmentHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBigailmentHandle
())){
if
(
Common
.
isNotNull
(
socialInfo
.
getBigailmentHandle
())){
socialInfo
.
setBigailmentHandle
(
handleStatusTemp
);
sf
.
setBigailmentHandle
(
handleStatusTemp
);
if
(
flag
){
socialInfo
.
setBigailmentReduceStart
(
dis
.
getSocialReduceDate
());
}
}
sf
.
setBigailmentHandle
(
handleStatusTemp
);
if
(
flag
){
sf
.
setBigailmentReduceStart
(
dis
.
getSocialReduceDate
());
}
}
...
...
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