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
3c23dc16
Commit
3c23dc16
authored
May 20, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
失败原因配置
parent
3e33377f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
71 deletions
+73
-71
TPaymentInfoController.java
...lus/v1/yifu/social/controller/TPaymentInfoController.java
+2
-1
TPaymentInfoService.java
...loud/plus/v1/yifu/social/service/TPaymentInfoService.java
+2
-1
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+69
-69
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TPaymentInfoController.java
View file @
3c23dc16
...
@@ -24,6 +24,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.constant.ResultConstants;
...
@@ -24,6 +24,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.constant.ResultConstants;
import
com.yifu.cloud.plus.v1.yifu.common.core.redis.RedisDistributedLock
;
import
com.yifu.cloud.plus.v1.yifu.common.core.redis.RedisDistributedLock
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.ErrorDetailVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.ErrorDetailVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
...
@@ -615,7 +616,7 @@ public class TPaymentInfoController {
...
@@ -615,7 +616,7 @@ public class TPaymentInfoController {
@Operation
(
description
=
"税务社保明细导入"
)
@Operation
(
description
=
"税务社保明细导入"
)
@SysLog
(
"税务社保明细导入"
)
@SysLog
(
"税务社保明细导入"
)
@PostMapping
(
"/importTaxSocialInfoList"
)
@PostMapping
(
"/importTaxSocialInfoList"
)
public
R
<
List
<
Error
DetailVO
>>
importTaxSocialInfoList
(
@RequestBody
MultipartFile
file
)
{
public
R
<
List
<
Error
Message
>>
importTaxSocialInfoList
(
@RequestBody
MultipartFile
file
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
Common
.
isEmpty
(
user
)){
if
(
Common
.
isEmpty
(
user
)){
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TPaymentInfoService.java
View file @
3c23dc16
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.social.service;/*
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.social.service;/*
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.ErrorDetailVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.ErrorDetailVO
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpSocialViewVo
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpSocialViewVo
;
...
@@ -79,7 +80,7 @@ public interface TPaymentInfoService extends IService<TPaymentInfo> {
...
@@ -79,7 +80,7 @@ public interface TPaymentInfoService extends IService<TPaymentInfo> {
* @param inputStream
* @param inputStream
* @return
* @return
*/
*/
R
<
List
<
Error
DetailVO
>>
importTaxSocialInfoDiy
(
InputStream
inputStream
);
R
<
List
<
Error
Message
>>
importTaxSocialInfoDiy
(
InputStream
inputStream
);
/**
/**
* 批量导入公积金
* 批量导入公积金
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
3c23dc16
...
@@ -688,6 +688,24 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -688,6 +688,24 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
return
R
.
ok
();
return
R
.
ok
();
}
}
/**
* @param errorMessageList
* @Description: 判断所有返回数据,是否全部为正确的
* @Author: hgw
* @Date: 2022/11/24 18:03
* @return: void
**/
private
R
<
List
<
ErrorMessage
>>
judgeAllMessage1
(
List
<
ErrorMessage
>
errorMessageList
)
{
if
(!
errorMessageList
.
isEmpty
())
{
if
(
errorMessageList
.
stream
().
allMatch
(
e
->
CommonConstants
.
SAVE_SUCCESS
.
equals
(
e
.
getMessage
())))
{
return
R
.
ok
(
errorMessageList
);
}
else
{
return
R
.
failed
(
errorMessageList
);
}
}
return
R
.
ok
();
}
private
void
importTPaymentSocialInfo
(
List
<
TPaymentInfoVo
>
list
,
String
sumNumKey
,
String
importSuccessKey
,
private
void
importTPaymentSocialInfo
(
List
<
TPaymentInfoVo
>
list
,
String
sumNumKey
,
String
importSuccessKey
,
ConcurrentHashMap
<
String
,
ErrorDetailVO
>
errorMessageMap
,
ConcurrentHashMap
<
String
,
ErrorDetailVO
>
errorMessageMap
,
YifuUser
user
,
Integer
rowNumber
,
YifuUser
user
,
Integer
rowNumber
,
...
@@ -1689,7 +1707,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -1689,7 +1707,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
@Override
@Override
public
R
<
List
<
Error
DetailVO
>>
importTaxSocialInfoDiy
(
InputStream
inputStream
)
{
public
R
<
List
<
Error
Message
>>
importTaxSocialInfoDiy
(
InputStream
inputStream
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
String
sumNumKey
=
user
.
getId
()
+
CommonConstants
.
DOWN_LINE_STRING
+
"sum_key"
;
String
sumNumKey
=
user
.
getId
()
+
CommonConstants
.
DOWN_LINE_STRING
+
"sum_key"
;
if
(
Common
.
isNotNull
(
redisUtil
.
get
(
sumNumKey
)))
{
if
(
Common
.
isNotNull
(
redisUtil
.
get
(
sumNumKey
)))
{
...
@@ -1728,7 +1746,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -1728,7 +1746,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
}
}
}
}
ConcurrentHashMap
<
String
,
Error
DetailVO
>
errorMessageMap
=
new
ConcurrentHashMap
<>();
ConcurrentHashMap
<
String
,
Error
Message
>
errorMessageMap
=
new
ConcurrentHashMap
<>();
ExcelUtil
<
TPaymentTaxSocialVo
>
util1
=
new
ExcelUtil
<>(
TPaymentTaxSocialVo
.
class
);
ExcelUtil
<
TPaymentTaxSocialVo
>
util1
=
new
ExcelUtil
<>(
TPaymentTaxSocialVo
.
class
);
ConcurrentHashMap
<
String
,
BigDecimal
>
pensionMoneyMap
=
new
ConcurrentHashMap
<>();
ConcurrentHashMap
<
String
,
BigDecimal
>
pensionMoneyMap
=
new
ConcurrentHashMap
<>();
ConcurrentHashMap
<
String
,
BigDecimal
>
bigMoneyMap
=
new
ConcurrentHashMap
<>();
ConcurrentHashMap
<
String
,
BigDecimal
>
bigMoneyMap
=
new
ConcurrentHashMap
<>();
...
@@ -1761,7 +1779,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -1761,7 +1779,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
data
.
setRowIndex
(
rowIndex
+
1
);
data
.
setRowIndex
(
rowIndex
+
1
);
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
if
(
Common
.
isNotNull
(
errorMessage
))
{
if
(
Common
.
isNotNull
(
errorMessage
))
{
errorMessageMap
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
errorMessage
.
getLineNum
(),
errorMessage
.
getMessage
()
));
errorMessageMap
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
errorMessage
.
getLineNum
(),
errorMessage
.
getMessage
(),
data
));
}
else
{
}
else
{
cachedDataList
.
add
(
data
);
cachedDataList
.
add
(
data
);
}
}
...
@@ -1847,9 +1865,9 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -1847,9 +1865,9 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
log
.
error
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
,
e
);
log
.
error
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
,
e
);
return
R
.
failed
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
);
return
R
.
failed
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
);
}
}
List
<
Error
DetailVO
>
errorMessageList
=
new
ArrayList
<>(
errorMessageMap
.
values
());
List
<
Error
Message
>
errorMessageList
=
new
ArrayList
<>(
errorMessageMap
.
values
());
errorMessageMap
.
clear
();
errorMessageMap
.
clear
();
return
this
.
judgeAllMessage
(
errorMessageList
);
return
this
.
judgeAllMessage
1
(
errorMessageList
);
}
}
@Override
@Override
...
@@ -2209,7 +2227,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -2209,7 +2227,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
private
void
importTPaymentSocialTax
(
List
<
TPaymentTaxSocialVo
>
list
,
private
void
importTPaymentSocialTax
(
List
<
TPaymentTaxSocialVo
>
list
,
ConcurrentHashMap
<
String
,
Error
DetailVO
>
errorMessageList
,
ConcurrentHashMap
<
String
,
Error
Message
>
errorMessageList
,
Integer
rowNumber
,
Integer
rowNumber
,
ConcurrentHashMap
<
String
,
BigDecimal
>
pensionMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
pensionMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
birthMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
birthMoneyMap
,
...
@@ -2234,7 +2252,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -2234,7 +2252,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
int
taskSize
=
list
.
size
()
/
partSize
+
CommonConstants
.
ONE_INT
;
int
taskSize
=
list
.
size
()
/
partSize
+
CommonConstants
.
ONE_INT
;
int
residualCapacity
=
yfSocialImportThreadPoolExecutor
.
getResidualCapacity
();
int
residualCapacity
=
yfSocialImportThreadPoolExecutor
.
getResidualCapacity
();
if
(
taskSize
>
residualCapacity
)
{
if
(
taskSize
>
residualCapacity
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(-
1
,
MsgUtils
.
getMessage
(
ErrorCodes
.
SOCIALINFO_LIST_NUM_LARGE
)));
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(-
1
,
MsgUtils
.
getMessage
(
ErrorCodes
.
SOCIALINFO_LIST_NUM_LARGE
)));
}
else
{
}
else
{
//已存在的档案数据
//已存在的档案数据
List
<
String
>
monthList
=
Common
.
listObjectToStrList
(
list
,
ExcelAttributeConstants
.
SOCIAL_PAY_MONTH
).
stream
().
distinct
().
collect
(
Collectors
.
toList
());
List
<
String
>
monthList
=
Common
.
listObjectToStrList
(
list
,
ExcelAttributeConstants
.
SOCIAL_PAY_MONTH
).
stream
().
distinct
().
collect
(
Collectors
.
toList
());
...
@@ -2401,7 +2419,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -2401,7 +2419,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
// -----------------------------线程池处理list,批量保存社保信息开始--------------------------------
// -----------------------------线程池处理list,批量保存社保信息开始--------------------------------
List
<
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
DetailVO
>>>
completableFutureList
=
new
ArrayList
<>();
List
<
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
Message
>>>
completableFutureList
=
new
ArrayList
<>();
// 创建一个数值格式化对象
// 创建一个数值格式化对象
NumberFormat
numberFormat
=
NumberFormat
.
getInstance
();
NumberFormat
numberFormat
=
NumberFormat
.
getInstance
();
...
@@ -2431,7 +2449,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -2431,7 +2449,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
try
{
try
{
// 1.list.size()不足100时直接执行
// 1.list.size()不足100时直接执行
if
(
list
.
size
()
<
100
)
{
if
(
list
.
size
()
<
100
)
{
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
DetailVO
>>
listCompletableFuture
=
CompletableFuture
.
supplyAsync
(()
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
Message
>>
listCompletableFuture
=
CompletableFuture
.
supplyAsync
(()
->
executeImportSocialListTax
(
list
,
areaMap
,
areaMap2
,
->
executeImportSocialListTax
(
list
,
areaMap
,
areaMap2
,
paymentInfoPensionMap
,
paymentInfoMedicalMap
,
paymentInfoUnEmpMap
,
paymentInfoInjuryMap
,
paymentInfoPensionMap
,
paymentInfoMedicalMap
,
paymentInfoUnEmpMap
,
paymentInfoInjuryMap
,
paymentInfoBigMap
,
errorMessageList
,
pensionMoneyMap
,
birthMoneyMap
,
bigMoneyMap
,
paymentInfoBigMap
,
errorMessageList
,
pensionMoneyMap
,
birthMoneyMap
,
bigMoneyMap
,
...
@@ -2444,7 +2462,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -2444,7 +2462,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
for
(
int
i
=
0
;
i
<
100
;
i
=
i
+
25
)
{
for
(
int
i
=
0
;
i
<
100
;
i
=
i
+
25
)
{
// 单个线程每次执行25条
// 单个线程每次执行25条
List
<
TPaymentTaxSocialVo
>
finalTempList1
=
list
.
subList
(
i
,
i
+
j
);
List
<
TPaymentTaxSocialVo
>
finalTempList1
=
list
.
subList
(
i
,
i
+
j
);
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
DetailVO
>>
listCompletableFuture
=
CompletableFuture
.
supplyAsync
(()
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
Message
>>
listCompletableFuture
=
CompletableFuture
.
supplyAsync
(()
->
executeImportSocialListTax
(
finalTempList1
->
executeImportSocialListTax
(
finalTempList1
,
areaMap
,
areaMap2
,
paymentInfoPensionMap
,
paymentInfoMedicalMap
,
,
areaMap
,
areaMap2
,
paymentInfoPensionMap
,
paymentInfoMedicalMap
,
paymentInfoUnEmpMap
,
paymentInfoInjuryMap
,
paymentInfoBigMap
,
paymentInfoUnEmpMap
,
paymentInfoInjuryMap
,
paymentInfoBigMap
,
...
@@ -2460,7 +2478,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -2460,7 +2478,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
boolean
computeFlag
;
boolean
computeFlag
;
do
{
do
{
computeFlag
=
false
;
computeFlag
=
false
;
for
(
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
DetailVO
>>
listCompletableFuture
:
completableFutureList
)
{
for
(
CompletableFuture
<
ConcurrentHashMap
<
String
,
Error
Message
>>
listCompletableFuture
:
completableFutureList
)
{
if
(!
listCompletableFuture
.
isDone
())
{
if
(!
listCompletableFuture
.
isDone
())
{
computeFlag
=
true
;
computeFlag
=
true
;
}
}
...
@@ -3196,7 +3214,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3196,7 +3214,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
return
errorMessageList
;
return
errorMessageList
;
}
}
private
ConcurrentHashMap
<
String
,
Error
DetailVO
>
executeImportSocialListTax
(
List
<
TPaymentTaxSocialVo
>
list
,
private
ConcurrentHashMap
<
String
,
Error
Message
>
executeImportSocialListTax
(
List
<
TPaymentTaxSocialVo
>
list
,
HashMap
<
String
,
String
>
areaMap
,
HashMap
<
String
,
String
>
areaMap
,
HashMap
<
String
,
String
>
areaMap2
,
HashMap
<
String
,
String
>
areaMap2
,
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoPensionMap
,
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoPensionMap
,
...
@@ -3204,7 +3222,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3204,7 +3222,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoUnEmpMap
,
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoUnEmpMap
,
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoInjuryMap
,
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoInjuryMap
,
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoBigMap
,
ConcurrentHashMap
<
String
,
TPaymentInfo
>
paymentInfoBigMap
,
ConcurrentHashMap
<
String
,
Error
DetailVO
>
errorMessageList
,
ConcurrentHashMap
<
String
,
Error
Message
>
errorMessageList
,
ConcurrentHashMap
<
String
,
BigDecimal
>
pensionMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
pensionMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
birthMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
birthMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
bigMoneyMap
,
ConcurrentHashMap
<
String
,
BigDecimal
>
bigMoneyMap
,
...
@@ -3261,7 +3279,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3261,7 +3279,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
//无对应员工的社保数据
//无对应员工的社保数据
if
(
socialMap
.
size
()
>
CommonConstants
.
ZERO_INT
)
{
if
(
socialMap
.
size
()
>
CommonConstants
.
ZERO_INT
)
{
if
(
null
==
infoVo
.
getSocialProvince
()
||
null
==
infoVo
.
getSocialCity
())
{
if
(
null
==
infoVo
.
getSocialProvince
()
||
null
==
infoVo
.
getSocialCity
())
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
infoVo
.
getEmpName
(),
"社保缴纳地填写错误,请核实后再次尝试!"
));
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"社保缴纳地填写错误,请核实后再次尝试!"
,
infoVo
));
continue
;
continue
;
}
}
socialInfo
=
socialMap
.
get
(
infoVo
.
getEmpIdcard
()
socialInfo
=
socialMap
.
get
(
infoVo
.
getEmpIdcard
()
...
@@ -3271,11 +3289,11 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3271,11 +3289,11 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
//对身份证与人员姓名的对应关系进行校验
//对身份证与人员姓名的对应关系进行校验
if
(
socialInfo
!=
null
&&
!
socialInfo
.
getEmpName
().
equals
(
infoVo
.
getEmpName
()))
{
if
(
socialInfo
!=
null
&&
!
socialInfo
.
getEmpName
().
equals
(
infoVo
.
getEmpName
()))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
infoVo
.
getEmpName
(),
"姓名与身份证信息不一致,请核实后再次尝试!"
));
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"姓名与身份证信息不一致,请核实后再次尝试!"
,
infoVo
));
continue
;
continue
;
}
}
if
(
socialInfo
!=
null
&&
socialInfo
.
getSocialStartDate
()
==
null
)
{
if
(
socialInfo
!=
null
&&
socialInfo
.
getSocialStartDate
()
==
null
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的社保起缴日期为空!"
));
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的社保起缴日期为空!"
,
infoVo
));
continue
;
continue
;
}
}
}
}
...
@@ -3299,8 +3317,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3299,8 +3317,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
}
}
}
if
(!
isTrueAdder
)
{
if
(!
isTrueAdder
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
infoVo
.
getEmpName
(),
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"无对应员工(身份证:"
+
infoVo
.
getEmpIdcard
()
+
")"
+
"的社保数据(请查验社保缴纳地)"
));
"无对应员工(身份证:"
+
infoVo
.
getEmpIdcard
()
+
")"
+
"的社保数据(请查验社保缴纳地)"
,
infoVo
));
continue
;
continue
;
}
}
}
else
{
}
else
{
...
@@ -3325,9 +3343,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3325,9 +3343,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
domain
=
null
;
domain
=
null
;
}
}
if
(
Common
.
isEmpty
(
domain
))
{
if
(
Common
.
isEmpty
(
domain
))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
NOT_EXIT_SETTLEiNFO
,
infoVo
));
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
SocialConstants
.
NOT_EXIT_SETTLEiNFO
));
continue
;
continue
;
}
}
payExists
.
setBpoFlag
(
domain
.
getBpoFlag
());
payExists
.
setBpoFlag
(
domain
.
getBpoFlag
());
...
@@ -3351,9 +3367,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3351,9 +3367,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
domain
=
null
;
domain
=
null
;
}
}
if
(
Common
.
isEmpty
(
domain
))
{
if
(
Common
.
isEmpty
(
domain
))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
NOT_EXIT_SETTLEiNFO
,
infoVo
));
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
SocialConstants
.
NOT_EXIT_SETTLEiNFO
));
continue
;
continue
;
}
}
payExists
.
setSettleDomainId
(
tSocialInfo
.
getSettleDomain
());
payExists
.
setSettleDomainId
(
tSocialInfo
.
getSettleDomain
());
...
@@ -3371,10 +3385,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3371,10 +3385,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
// 项目信息校验
// 项目信息校验
errorInfo
=
settleInfoCheck
(
payExists
);
errorInfo
=
settleInfoCheck
(
payExists
);
if
(!
Common
.
isEmpty
(
errorInfo
)){
if
(!
Common
.
isEmpty
(
errorInfo
)){
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_PRI
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
+
errorInfo
+
SocialConstants
.
ERROR_END
,
infoVo
));
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_PRI
+
errorInfo
+
SocialConstants
.
ERROR_END
));
continue
;
continue
;
}
}
if
(
Common
.
isNotNull
(
tSocialInfo
))
{
if
(
Common
.
isNotNull
(
tSocialInfo
))
{
...
@@ -3420,8 +3432,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3420,8 +3432,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
pensionMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
pensionMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
pensionMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
pensionMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位养老缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位养老缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
pensionMoneyMap
.
get
(
exitMoneyPer
)))
{
if
(
Common
.
isNotNull
(
pensionMoneyMap
.
get
(
exitMoneyPer
)))
{
...
@@ -3434,8 +3445,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3434,8 +3445,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
pensionMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
pensionMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
pensionMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
pensionMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人养老缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人养老缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
pensionMoneyMap
.
get
(
exitMoneyCon
)))
{
if
(
Common
.
isNotNull
(
pensionMoneyMap
.
get
(
exitMoneyCon
)))
{
...
@@ -3465,8 +3475,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3465,8 +3475,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitPensionMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitPensionMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalPensionMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalPensionMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payInsert
.
getSocialHousehold
(),
payInsert
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
+
"的养老缴费数据,请勿重复导入!"
));
+
"的养老缴费数据,请勿重复导入!"
,
infoVo
));
continue
;
continue
;
}
}
batchYlInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
batchYlInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
...
@@ -3482,8 +3492,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3482,8 +3492,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
unEmpMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
unEmpMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
unEmpMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
unEmpMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位失业缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位失业缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
unEmpMoneyMap
.
get
(
exitMoneyPer
)))
{
if
(
Common
.
isNotNull
(
unEmpMoneyMap
.
get
(
exitMoneyPer
)))
{
...
@@ -3496,8 +3505,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3496,8 +3505,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
unEmpMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
unEmpMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
unEmpMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
unEmpMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人失业缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人失业缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
unEmpMoneyMap
.
get
(
exitMoneyCon
)))
{
if
(
Common
.
isNotNull
(
unEmpMoneyMap
.
get
(
exitMoneyCon
)))
{
...
@@ -3527,8 +3535,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3527,8 +3535,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitUnemploymentMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitUnemploymentMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalUnemploymentMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalUnemploymentMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
+
"的失业缴费数据,请勿重复导入!"
));
+
"的失业缴费数据,请勿重复导入!"
,
infoVo
));
continue
;
continue
;
}
}
batchSyInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
batchSyInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
...
@@ -3544,8 +3552,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3544,8 +3552,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
medicalMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
medicalMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
medicalMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
medicalMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位医疗缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位医疗缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
medicalMoneyMap
.
get
(
exitMoneyPer
)))
{
if
(
Common
.
isNotNull
(
medicalMoneyMap
.
get
(
exitMoneyPer
)))
{
...
@@ -3558,8 +3565,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3558,8 +3565,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
medicalMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
medicalMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
medicalMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
medicalMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人医疗缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人医疗缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
medicalMoneyMap
.
get
(
exitMoneyCon
)))
{
if
(
Common
.
isNotNull
(
medicalMoneyMap
.
get
(
exitMoneyCon
)))
{
...
@@ -3589,8 +3595,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3589,8 +3595,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitPensionMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitPensionMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalPensionMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalPensionMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
+
"的医疗缴费数据,请勿重复导入!"
));
+
"的医疗缴费数据,请勿重复导入!"
,
infoVo
));
continue
;
continue
;
}
}
batchYyInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
batchYyInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
...
@@ -3604,8 +3610,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3604,8 +3610,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
injuryMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
injuryMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
injuryMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
injuryMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位工伤缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位工伤缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
payExists
.
setUnitInjuryMoney
(
infoVo
.
getPaymentMoney
());
payExists
.
setUnitInjuryMoney
(
infoVo
.
getPaymentMoney
());
...
@@ -3629,8 +3634,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3629,8 +3634,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
null
!=
payInsert
&&
((
null
!=
payInsert
.
getGsSameFlg
()
&&
CommonConstants
.
ONE_STRING
.
equals
(
payInsert
.
getGsSameFlg
()))
if
(
null
!=
payInsert
&&
((
null
!=
payInsert
.
getGsSameFlg
()
&&
CommonConstants
.
ONE_STRING
.
equals
(
payInsert
.
getGsSameFlg
()))
||
(
BigDecimalUtils
.
safeMultiply
(
infoVo
.
getPaymentMoney
(),
||
(
BigDecimalUtils
.
safeMultiply
(
infoVo
.
getPaymentMoney
(),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitInjuryMoney
())).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitInjuryMoney
())).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
+
"的单位工伤缴费数据,请勿重复导入!"
));
+
"的单位工伤缴费数据,请勿重复导入!"
,
infoVo
));
continue
;
continue
;
}
}
batchGsInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
batchGsInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
...
@@ -3647,8 +3652,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3647,8 +3652,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
bigMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
bigMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
bigMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
bigMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位大病救助金缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位大病救助金缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
bigMoneyMap
.
get
(
exitMoneyPer
)))
{
if
(
Common
.
isNotNull
(
bigMoneyMap
.
get
(
exitMoneyPer
)))
{
...
@@ -3661,8 +3665,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3661,8 +3665,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
bigMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
bigMoneyMap
.
get
(
exitMoneyPer
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
bigMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
bigMoneyMap
.
get
(
exitMoneyPer
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人大病救助金缴费数据"
,
infoVo
));
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的个人大病救助金缴费数据"
));
continue
;
continue
;
}
else
{
}
else
{
if
(
Common
.
isNotNull
(
bigMoneyMap
.
get
(
exitMoneyCon
)))
{
if
(
Common
.
isNotNull
(
bigMoneyMap
.
get
(
exitMoneyCon
)))
{
...
@@ -3691,8 +3694,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3691,8 +3694,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
||
(
BigDecimalUtils
.
safeMultiply
(
payExists
.
getSocialSum
(),
BigDecimalUtils
.
safeAdd
(
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitBigmailmentMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitBigmailmentMoney
()),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalBigmailmentMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getPersonalBigmailmentMoney
()))).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
+
"的大病救助金缴费数据,请勿重复导入!"
));
+
"的大病救助金缴费数据,请勿重复导入!"
,
infoVo
));
continue
;
continue
;
}
}
batchBigInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
batchBigInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
...
@@ -3706,8 +3709,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3706,8 +3709,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
birthMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
if
(
birthMoneyMap
.
get
(
exitMoneyCon
)
!=
null
&&
BigDecimalUtils
.
safeMultiply
(
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
BigDecimalUtils
.
isNullToZero
(
infoVo
.
getPaymentMoney
())
,
birthMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
,
birthMoneyMap
.
get
(
exitMoneyCon
)).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
SocialConstants
.
ERROR_TEMPLATE
+
infoVo
.
getEmpName
(),
SocialConstants
.
ERROR_TEMPLATE
+
"的单位生育缴费数据"
));
"的单位生育缴费数据"
,
infoVo
));
continue
;
continue
;
}
else
{
}
else
{
payExists
.
setUnitBirthMoney
(
infoVo
.
getPaymentMoney
());
payExists
.
setUnitBirthMoney
(
infoVo
.
getPaymentMoney
());
...
@@ -3731,17 +3734,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3731,17 +3734,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
null
!=
payInsert
&&
((
null
!=
payInsert
.
getBrSameFlg
()
&&
CommonConstants
.
ONE_STRING
.
equals
(
payInsert
.
getBrSameFlg
()))
if
(
null
!=
payInsert
&&
((
null
!=
payInsert
.
getBrSameFlg
()
&&
CommonConstants
.
ONE_STRING
.
equals
(
payInsert
.
getBrSameFlg
()))
||
(
BigDecimalUtils
.
safeMultiply
(
infoVo
.
getPaymentMoney
(),
||
(
BigDecimalUtils
.
safeMultiply
(
infoVo
.
getPaymentMoney
(),
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitBirthMoney
())).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
BigDecimalUtils
.
isNullToZero
(
payInsert
.
getUnitBirthMoney
())).
compareTo
(
BigDecimal
.
ZERO
)
>
0
)))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"已存在对应员工身份证"
+
infoVo
.
getEmpIdcard
()
+
"的单位生育缴费数据,请勿重复导入!"
));
+
"的单位生育缴费数据,请勿重复导入!"
,
infoVo
));
continue
;
continue
;
}
}
batchBirthInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
batchBirthInsertList
.
put
(
exitInsertPaymnet
,
payExists
);
}
}
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorDetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ONE_INT
,
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
ErrorMessage
(
infoVo
.
getRowIndex
(),
infoVo
.
getEmpIdcard
(),
CommonConstants
.
SAVE_SUCCESS
,
infoVo
));
payExists
.
getSocialHousehold
(),
payExists
.
getProvidentHousehold
(),
infoVo
.
getEmpName
(),
"对应员工身份证"
+
infoVo
.
getEmpIdcard
()
+
CommonConstants
.
SAVE_SUCCESS
,
CommonConstants
.
GREEN
));
}
}
}
}
return
errorMessageList
;
return
errorMessageList
;
...
@@ -3777,18 +3777,18 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
...
@@ -3777,18 +3777,18 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
/**
/**
* 导入校验
* 导入校验
**/
**/
private
boolean
socialThreeCheckBaseTax
(
ConcurrentHashMap
<
String
,
Error
DetailVO
>
errorMessageList
,
private
boolean
socialThreeCheckBaseTax
(
ConcurrentHashMap
<
String
,
Error
Message
>
errorMessageList
,
TPaymentTaxSocialVo
infoVo
)
{
TPaymentTaxSocialVo
infoVo
)
{
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayMonth
()))
{
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayMonth
()))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
infoVo
.
getEmpName
(),
"社保缴纳月份不可为空!"
));
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"社保缴纳月份不可为空!"
,
infoVo
));
return
true
;
return
true
;
}
}
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialCreateMonth
()))
{
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialCreateMonth
()))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
infoVo
.
getEmpName
(),
"社保生成月份不可为空!"
));
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"社保生成月份不可为空!"
,
infoVo
));
return
true
;
return
true
;
}
}
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayAddr
()))
{
if
(!
Common
.
isNotNull
(
infoVo
.
getSocialPayAddr
()))
{
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
DetailVO
(
infoVo
.
getRowIndex
(),
CommonConstants
.
ZERO_INT
,
infoVo
.
getEmpIdcard
(),
""
,
""
,
infoVo
.
getEmpName
(),
"社保缴纳地不可为空!"
));
errorMessageList
.
put
(
UUID
.
randomUUID
().
toString
(),
new
Error
Message
(
infoVo
.
getRowIndex
(),
"社保缴纳地不可为空!"
,
infoVo
));
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
...
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