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
4b11e2b8
Commit
4b11e2b8
authored
Sep 16, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ekp推送接口修改
parent
c6bc6479
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
108 deletions
+0
-108
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+0
-108
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
4b11e2b8
...
@@ -730,7 +730,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -730,7 +730,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
String
[]
areaArray
;
String
[]
areaArray
;
String
checkRes
;
for
(
TPaymentInfoVo
infoVo
:
list
)
{
for
(
TPaymentInfoVo
infoVo
:
list
)
{
atomicLine
.
incrementAndGet
();
atomicLine
.
incrementAndGet
();
...
@@ -775,12 +774,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -775,12 +774,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
infoVo
.
getEmpIdcard
()
+
"的社保数据(请查验社保缴纳地)"
));
infoVo
.
getEmpIdcard
()
+
"的社保数据(请查验社保缴纳地)"
));
continue
;
continue
;
}
}
//如果导入项目数大于办理成功项目数给提示,少于给进,有问题自行删除后导入
checkRes
=
checkRepeatInfo
(
socialInfo
,
infoVo
);
if
(
null
!=
checkRes
)
{
errorMessageList
.
add
(
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
checkRes
));
continue
;
}
//查看缴纳月是否为空
//查看缴纳月是否为空
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayMonth
()))
{
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayMonth
()))
{
...
@@ -1045,60 +1038,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -1045,60 +1038,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
return
errorMessageList
;
return
errorMessageList
;
}
}
private
String
concatStr
(
String
socialType
)
{
return
"存在未办理成功的险种:"
+
socialType
+
",请办理成功后,再行导入!"
;
}
/**
* 验证部分办理失败的导入是否有超出部分的数据导入
*
* @param socialInfo
* @param infoVo
* @return
* @Author fxj
* @Date 2021-06-21
**/
private
String
checkRepeatInfo
(
TSocialFundInfo
socialInfo
,
TPaymentInfoVo
infoVo
)
{
if
(
checkHandleMoney
(
socialInfo
.
getPensionHandle
(),
infoVo
.
getUnitPensionMoney
(),
infoVo
.
getPersonalPensionMoney
()))
{
return
concatStr
(
"养老"
);
}
if
(
checkHandleMoney
(
socialInfo
.
getMedicalHandle
(),
infoVo
.
getUnitMedicalMoney
(),
infoVo
.
getPersonalMedicalMoney
()))
{
return
concatStr
(
"医疗"
);
}
if
(
checkHandleMoney
(
socialInfo
.
getUnemployHandle
(),
infoVo
.
getUnitUnemploymentMoney
(),
infoVo
.
getPersonalUnemploymentMoney
()))
{
return
concatStr
(
"失业"
);
}
if
(
checkHandleMoney
(
socialInfo
.
getWorkInjuryHandle
(),
infoVo
.
getUnitInjuryMoney
(),
BigDecimal
.
ZERO
))
{
return
concatStr
(
"工伤"
);
}
if
(
checkHandleMoney
(
socialInfo
.
getBirthHandle
(),
infoVo
.
getUnitBirthMoney
(),
BigDecimal
.
ZERO
))
{
return
concatStr
(
"生育"
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getIsIllness
())
&&
(
Common
.
isBlankToBigDecimalZero
(
infoVo
.
getUnitBigmailmentMoney
()).
compareTo
(
BigDecimal
.
ZERO
)
>
CommonConstants
.
ZERO_INT
||
Common
.
isBlankToBigDecimalZero
(
infoVo
.
getPersonalBigmailmentMoney
()).
compareTo
(
BigDecimal
.
ZERO
)
>
CommonConstants
.
ZERO_INT
))
{
return
"无大病,无需导入大病!"
;
}
if
(
checkHandleMoney
(
socialInfo
.
getBigailmentHandle
(),
infoVo
.
getUnitBigmailmentMoney
(),
infoVo
.
getPersonalBigmailmentMoney
()))
{
return
concatStr
(
"大病"
);
}
return
null
;
}
private
boolean
checkHandleMoney
(
String
handleStatus
,
BigDecimal
unitMoney
,
BigDecimal
personalMoney
)
{
return
CommonConstants
.
TWO_STRING
.
equals
(
handleStatus
)
&&
(
Common
.
isBlankToBigDecimalZero
(
unitMoney
).
compareTo
(
BigDecimal
.
ZERO
)
>
CommonConstants
.
ZERO_INT
||
Common
.
isBlankToBigDecimalZero
(
personalMoney
).
compareTo
(
BigDecimal
.
ZERO
)
>
CommonConstants
.
ZERO_INT
);
}
/**
/**
* 拼接排序字段并插入
* 拼接排序字段并插入
*
*
...
@@ -1728,7 +1667,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -1728,7 +1667,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
String
[]
areaArray
;
String
[]
areaArray
;
String
checkRes
;
for
(
TPaymentHeFeiVo
infoVo
:
list
)
{
for
(
TPaymentHeFeiVo
infoVo
:
list
)
{
atomicLine
.
incrementAndGet
();
atomicLine
.
incrementAndGet
();
...
@@ -1765,12 +1703,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -1765,12 +1703,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
"的社保数据(请查验社保缴纳地)"
));
"的社保数据(请查验社保缴纳地)"
));
continue
;
continue
;
}
}
//如果导入项目数大于办理成功项目数给提示,少于给进,有问题自行删除后导入
checkRes
=
checkRepeatInfoThree
(
socialInfo
,
infoVo
,
type
);
if
(
null
!=
checkRes
)
{
errorMessageList
.
add
(
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
checkRes
));
continue
;
}
//查看缴纳月是否为空
//查看缴纳月是否为空
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayMonth
()))
{
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayMonth
()))
{
...
@@ -2068,46 +2000,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -2068,46 +2000,6 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
return
s
;
return
s
;
}
}
/**
* 验证部分办理失败的导入是否有超出部分的数据导入
*
* @param socialInfo
* @param infoVo
* @return
* @Author huyc
* @Date 2022-07-27
**/
private
String
checkRepeatInfoThree
(
TSocialFundInfo
socialInfo
,
TPaymentHeFeiVo
infoVo
,
String
type
)
{
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
type
))
{
if
(
PaymentConstants
.
PENSION_RISK
.
equals
(
infoVo
.
getRiskType
())
&&
checkHandleMoney
(
socialInfo
.
getPensionHandle
(),
infoVo
.
getUnitMoney
(),
infoVo
.
getPersonalMoney
()))
{
return
concatStr
(
PaymentConstants
.
PENSION
);
}
if
(
PaymentConstants
.
UNEMPLOYEEMENT_RISK
.
equals
(
infoVo
.
getRiskType
())
&&
checkHandleMoney
(
socialInfo
.
getUnemployHandle
(),
infoVo
.
getUnitMoney
(),
infoVo
.
getPersonalMoney
()))
{
return
concatStr
(
PaymentConstants
.
UNEMPLOYEEMENT
);
}
if
(
PaymentConstants
.
INJURY_RISK
.
equals
(
infoVo
.
getRiskType
())
&&
checkHandleMoney
(
socialInfo
.
getWorkInjuryHandle
(),
infoVo
.
getUnitMoney
(),
infoVo
.
getPersonalMoney
()))
{
return
concatStr
(
PaymentConstants
.
INJURY
);
}
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
type
))
{
if
(
checkHandleMoney
(
socialInfo
.
getMedicalHandle
(),
infoVo
.
getUnitMedicalMoney
(),
infoVo
.
getPersonalMedicalMoney
()))
{
return
concatStr
(
PaymentConstants
.
MEDICAL
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getIsIllness
())
&&
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getUnitBigailmentMoney
()).
compareTo
(
BigDecimal
.
ZERO
)
!=
CommonConstants
.
ZERO_INT
))
{
return
"无大病,无需导入大病!"
;
}
}
return
null
;
}
//比对缴纳地是否一致
//比对缴纳地是否一致
private
TSocialFundInfo
checkAddress
(
String
[]
areaArray
,
HashMap
<
String
,
String
>
areaMap
,
TSocialFundInfo
s
)
{
private
TSocialFundInfo
checkAddress
(
String
[]
areaArray
,
HashMap
<
String
,
String
>
areaMap
,
TSocialFundInfo
s
)
{
if
(
null
==
areaArray
||
null
==
areaMap
||
null
==
s
)
{
if
(
null
==
areaArray
||
null
==
areaMap
||
null
==
s
)
{
...
...
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