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
4e065453
Commit
4e065453
authored
Jul 26, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature-zhaji
parents
795abba1
33608364
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
48 deletions
+62
-48
TSocialFundInfo.java
...ifu/cloud/plus/v1/yifu/social/entity/TSocialFundInfo.java
+10
-10
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+52
-38
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TSocialFundInfo.java
View file @
4e065453
...
@@ -249,26 +249,26 @@ public class TSocialFundInfo extends BaseEntity {
...
@@ -249,26 +249,26 @@ public class TSocialFundInfo extends BaseEntity {
@ExcelProperty
(
"缴纳地-县"
)
@ExcelProperty
(
"缴纳地-县"
)
private
String
fundTown
;
private
String
fundTown
;
/**
/**
* 社保派增状态:0待审核、1待办理、2办理成功、3部分办理失败、4办理失败
* 社保派增状态:0待审核、1待办理、2办理成功、3部分办理失败、4办理失败
5 审核不通过
*/
*/
@Length
(
max
=
1
,
message
=
"社保派增状态 不能超过1个字符"
)
@Length
(
max
=
1
,
message
=
"社保派增状态 不能超过1个字符"
)
@ExcelAttribute
(
name
=
"社保派增状态"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"社保派增状态"
,
maxLength
=
1
)
@Schema
(
description
=
"社保派增状态:0待审核、1待办理、2办理成功、3部分办理失败、4办理失败"
)
@Schema
(
description
=
"社保派增状态:0待审核、1待办理、2办理成功、3部分办理失败、4办理失败
、5审核不通过
"
)
@ExcelProperty
(
"社保派增状态"
)
@ExcelProperty
(
"社保派增状态"
)
private
String
socialAddStatus
;
private
String
socialAddStatus
;
/**
/**
* 公积金派增状态:0待审核、1待办理、2办理成功、3办理失败
* 公积金派增状态:0待审核、1待办理、2办理成功、3办理失败
、4审核不通过
*/
*/
@Length
(
max
=
1
,
message
=
"公积金派增状态 不能超过1个字符"
)
@Length
(
max
=
1
,
message
=
"公积金派增状态 不能超过1个字符"
)
@ExcelAttribute
(
name
=
"公积金派增状态"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"公积金派增状态"
,
maxLength
=
1
)
@Schema
(
description
=
"公积金派增状态:0待审核、1待办理、2办理成功、3办理失败"
)
@Schema
(
description
=
"公积金派增状态:0待审核、1待办理、2办理成功、3办理失败
、4审核不通过
"
)
@ExcelProperty
(
"公积金派增状态"
)
@ExcelProperty
(
"公积金派增状态"
)
private
String
fundAddStatus
;
private
String
fundAddStatus
;
/**
/**
* 社保派减状态:0待审核、1待办理、2办理成功、3办理失败
* 社保派减状态:0待审核、1待办理、2办理成功、3办理失败
4审核不通过
*/
*/
@ExcelAttribute
(
name
=
"社保派减状态"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"社保派减状态"
,
maxLength
=
1
)
@Schema
(
description
=
"社保派减状态:0待审核、1待办理、2办理成功、3办理失败"
)
@Schema
(
description
=
"社保派减状态:0待审核、1待办理、2办理成功、3办理失败
4审核不通过
"
)
@ExcelProperty
(
"社保派减状态"
)
@ExcelProperty
(
"社保派减状态"
)
private
String
socialReduceStatus
;
private
String
socialReduceStatus
;
/**
/**
...
@@ -964,18 +964,18 @@ public class TSocialFundInfo extends BaseEntity {
...
@@ -964,18 +964,18 @@ public class TSocialFundInfo extends BaseEntity {
private
BigDecimal
personalFundSum
;
private
BigDecimal
personalFundSum
;
/**
/**
* 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败
)、派减(6待审核 7待办理 8办理成功 9 办理失败 10 审核不通过
)
* 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败
10 审核不通过)、派减(6待审核 7待办理 8办理成功 9 办理失败
)
*/
*/
@ExcelAttribute
(
name
=
"社保状态"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"社保状态"
,
maxLength
=
1
)
@Schema
(
description
=
"社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败
)、派减(6待审核 7待办理 8办理成功 9 办理失败10 审核不通过
)"
)
@Schema
(
description
=
"社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败
10 审核不通过)、派减(6待审核 7待办理 8办理成功 9 办理失败
)"
)
@ExcelProperty
(
"社保派增状态"
)
@ExcelProperty
(
"社保派增状态"
)
private
String
socialStatus
;
private
String
socialStatus
;
/**
/**
* 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败
)、派减(5待审核 6待办理 7 办理成功 8 办理失败 9 审核不通过
)
* 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败
9 审核不通过)、派减(5待审核 6待办理 7 办理成功 8 办理失败
)
*/
*/
@Length
(
max
=
1
,
message
=
"公积金状态 不能超过1个字符"
)
@Length
(
max
=
1
,
message
=
"公积金状态 不能超过1个字符"
)
@ExcelAttribute
(
name
=
"公积金状态"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"公积金状态"
,
maxLength
=
1
)
@Schema
(
description
=
"公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败
)、派减(5待审核 6待办理 7 办理成功 8 办理失败 9 审核不通过
)"
)
@Schema
(
description
=
"公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败
9 审核不通过)、派减(5待审核 6待办理 7 办理成功 8 办理失败
)"
)
@ExcelProperty
(
"公积金状态"
)
@ExcelProperty
(
"公积金状态"
)
private
String
fundStatus
;
private
String
fundStatus
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
4e065453
...
@@ -1377,23 +1377,28 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1377,23 +1377,28 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
socialFundMap
)){
if
(
Common
.
isNotNull
(
socialFundMap
)){
socialFund
=
socialFundMap
.
get
(
excel
.
getEmpIdcard
());
socialFund
=
socialFundMap
.
get
(
excel
.
getEmpIdcard
());
if
(
Common
.
isNotNull
(
socialFund
)){
if
(
Common
.
isNotNull
(
socialFund
)){
// 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败)、派减(6待审核 7待办理 8办理成功 9 办理失败 10 审核不通过)
// 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败)、派减(6待审核 7待办理 8办理成功 9 办理失败 10 审核不通过
-增
)
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())
&&
(
Common
.
isEmpty
(
socialFund
.
getSocialStatus
())
&&
(
CommonConstants
.
SIX_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
SIX_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
SEVEN_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
SEVEN_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
NINE_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
NINE_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
socialFund
.
getSocialStatus
()))
||
CommonConstants
.
TEN_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
ZERO_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialFund
.
getSocialStatus
()))
){
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_EXISTING
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_EXISTING
)));
return
true
;
return
true
;
}
}
// 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败)、派减(5待审核 6待办理 7 办理成功 8 办理失败 9 审核不通过)
// 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败)、派减(5待审核 6待办理 7 办理成功 8 办理失败 9 审核不通过
-增
)
if
(
Common
.
isNotNull
(
excel
.
getProvidentHousehold
())
if
(
Common
.
isNotNull
(
excel
.
getProvidentHousehold
())
&&
(
CommonConstants
.
FIVE_STRING
.
equals
(
socialFund
.
getFundStatus
())
&&
(
CommonConstants
.
FIVE_STRING
.
equals
(
socialFund
.
getFundStatus
())
&&
CommonConstants
.
SIX_STRING
.
equals
(
socialFund
.
getFundStatus
())
||
CommonConstants
.
SIX_STRING
.
equals
(
socialFund
.
getFundStatus
())
&&
CommonConstants
.
EIGHT_STRING
.
equals
(
socialFund
.
getFundStatus
())
||
CommonConstants
.
EIGHT_STRING
.
equals
(
socialFund
.
getFundStatus
())
&&
CommonConstants
.
FOUR_STRING
.
equals
(
socialFund
.
getFundStatus
()))){
||
CommonConstants
.
ZERO_STRING
.
equals
(
socialFund
.
getFundStatus
())
||
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getFundStatus
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getFundStatus
()))){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_FUND_EXISTING
)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_FUND_EXISTING
)));
return
true
;
return
true
;
}
}
...
@@ -1747,36 +1752,29 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1747,36 +1752,29 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//派增审核不通过 需要处理预估数据
//派增审核不通过 需要处理预估数据
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
socialInfo
.
setDeleteFlag
(
CommonConstants
.
ONE_STRING
);
socialInfo
.
setDeleteFlag
(
CommonConstants
.
ONE_STRING
);
// 作废更新:社保状态、同步预估数据 审核不通过直接作废 TODO
// 作废更新:社保状态、同步预估数据 审核不通过直接作废 TODO
预估数据
socialInfo
.
setAuditStatus
(
CommonConstants
.
TWO_STRING
);
socialInfo
.
setAuditStatus
(
CommonConstants
.
TWO_STRING
);
clearSocialAddInfo
(
sf
,
dis
);
sf
.
setSocialAddStatus
(
CommonConstants
.
FOUR_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
TEN_STRING
);
}
}
socialInfo
.
setAuditTime
(
new
Date
());
socialInfo
.
setAuditUser
(
user
.
getId
());
}
}
// 派减审核
// 派减审核
if
(
CommonConstants
.
dingleDigitStrArray
[
1
].
equals
(
dis
.
getType
())){
if
(
CommonConstants
.
dingleDigitStrArray
[
1
].
equals
(
dis
.
getType
())){
//派增审核通过
//派增审核通过
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
socialInfo
.
set
AuditStatus
(
CommonConstants
.
ONE_STRING
);
socialInfo
.
set
ReduceCan
(
CommonConstants
.
ONE_STRING
);
// 待办理
// 待办理
sf
.
setSocial
Add
Status
(
CommonConstants
.
ONE_STRING
);
sf
.
setSocial
Reduce
Status
(
CommonConstants
.
ONE_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
ONE
_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
SEVEN
_STRING
);
//派增审核不通过 需要处理预估数据
//派增审核不通过 需要处理预估数据
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
//派增作废同时删除社保或公积金,派减对应社保公积金状态修改 TODO
// 作废更新:社保状态、同步预估数据 8 审核不通过直接作废
socialInfo
.
setDeleteFlag
(
CommonConstants
.
ONE_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
ONE_STRING_NEGATE
);
// 作废更新:社保状态、同步预估数据 8 审核不通过直接作废 TODO
sf
.
setSocialStatus
(
CommonConstants
.
THREE_STRING
);
if
(
CommonConstants
.
dingleDigitStrArray
[
0
].
equals
(
dis
.
getType
())){
socialInfo
.
setAuditStatus
(
CommonConstants
.
TWO_STRING
);
}
}
}
}
}
socialInfo
.
setAuditTime
(
new
Date
());
socialInfo
.
setAuditUser
(
user
.
getId
());
socialMapper
.
updateById
(
socialInfo
);
socialMapper
.
updateById
(
socialInfo
);
}
}
}
}
...
@@ -1788,25 +1786,41 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1788,25 +1786,41 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
remark
+=
"公积金"
;
remark
+=
"公积金"
;
}
}
providentFund
=
fundMapper
.
selectById
(
dis
.
getFundId
());
providentFund
=
fundMapper
.
selectById
(
dis
.
getFundId
());
if
(
null
==
providentFund
&&
Common
.
isNotNull
(
dis
.
getFundId
()
))
{
if
(
Common
.
isNotNull
(
providentFund
))
{
errorList
.
add
(
new
ErrorMessage
(-
1
,
"找不到员工公积金派单数据:"
+
dis
.
getEmpName
()));
errorList
.
add
(
new
ErrorMessage
(-
1
,
"找不到员工公积金派单数据:"
+
dis
.
getEmpName
()));
continue
;
continue
;
}
}
if
(
null
!=
providentFund
&&
Common
.
isNotNull
(
dis
.
getFundId
()))
{
if
(
Common
.
isNotNull
(
providentFund
))
{
// 审核通过
//派增
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
if
(
CommonConstants
.
dingleDigitStrArray
[
0
].
equals
(
dis
.
getType
())){
if
(
CommonConstants
.
dingleDigitStrArray
[
0
].
equals
(
dis
.
getType
())){
// 审核通过
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
providentFund
.
setAuditStatus
(
CommonConstants
.
ONE_STRING
);
providentFund
.
setAuditStatus
(
CommonConstants
.
ONE_STRING
);
}
sf
.
setFundAddStatus
(
CommonConstants
.
ONE_STRING
);
// 审核不通过
sf
.
setFundStatus
(
CommonConstants
.
ONE_STRING
);
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
// 审核不通过
// 作废更新:公积金状态、同步档案的公积金状态、同步预估数据 fxj 20200928 审核不通过直接作废
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
if
(
CommonConstants
.
dingleDigitStrArray
[
0
].
equals
(
dis
.
getType
())){
// 作废更新:公积金状态、同步档案的公积金状态、同步预估数据 TODO
providentFund
.
setAuditStatus
(
CommonConstants
.
TWO_STRING
);
providentFund
.
setAuditStatus
(
CommonConstants
.
TWO_STRING
);
sf
.
setFundAddStatus
(
CommonConstants
.
FOUR_STRING
);
sf
.
setFundStatus
(
CommonConstants
.
NINE_STRING
);
}
providentFund
.
setAuditTime
(
new
Date
());
providentFund
.
setAuditUser
(
user
.
getId
());
}
//派减
if
(
CommonConstants
.
dingleDigitStrArray
[
1
].
equals
(
dis
.
getType
())){
// 审核通过
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
sf
.
setFundReduceStatus
(
CommonConstants
.
ONE_STRING
);
sf
.
setFundStatus
(
CommonConstants
.
EIGHT_STRING
);
// 审核不通过
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
// 作废更新:公积金状态、同步档案的公积金状态、同步预估数据 TODO
sf
.
setFundReduceStatus
(
CommonConstants
.
ONE_STRING_NEGATE
);
sf
.
setFundStatus
(
CommonConstants
.
THREE_STRING
);
}
}
}
}
providentFund
.
setAuditTime
(
new
Date
());
providentFund
.
setAuditUser
(
user
.
getId
());
fundMapper
.
updateById
(
providentFund
);
fundMapper
.
updateById
(
providentFund
);
}
}
...
...
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