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
36889278
Commit
36889278
authored
Apr 11, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单分项目派单状态处理
parent
5dce737e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
8 deletions
+41
-8
ErrorCodes.java
.../cloud/plus/v1/yifu/common/core/exception/ErrorCodes.java
+4
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+2
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+35
-8
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/exception/ErrorCodes.java
View file @
36889278
...
...
@@ -428,6 +428,10 @@ public interface ErrorCodes {
* 派减异常: 本次派增已存在对应身份证号的派减记录
*/
String
EMP_DISPATCH_REDUCE_EXISTS
=
"emp.dispatch.reduce.exists"
;
/**
* 无可派单项,请确认后再次操作
*/
String
EMP_DISPATCH_ITEM_EMPTY_EXISTS
=
"emp.dispatch.item.empty.exists"
;
/**
* 当前社保导入队列不足或者数据量过大,请稍后重试!
*/
...
...
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
36889278
...
...
@@ -156,6 +156,8 @@ emp.dispatch.reduce.exists=\u6D3E\u51CF\u5F02\u5E38\uFF1A \u672C\u6B21\u6D3E\u58
socialinfo.list.num.large
=
\u
5F53
\u
524D
\u
793E
\u
4FDD
\u
5BFC
\u5165\u
961F
\u5217\u
4E0D
\u
8DB3
\u6216\u8005\u6570\u
636E
\u
91CF
\u
8FC7
\u5927\u
FF0C
\u
8BF7
\u
7A0D
\u
540E
\u
91CD
\u
8BD5
\u
FF01
emp.dispatch.item.empty.exists
=
\u
65E0
\u
53EF
\u
6D3E
\u5355\u9879\u
FF0C
\u
8BF7
\u
786E
\u
8BA4
\u
540E
\u
518D
\u
6B21
\u
64CD
\u
4F5C
emp.dispatch.social.diy.not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u
201C
\u
7F34
\u
7EB3
\u
7C7B
\u
578B
\u
201D
\u
4E3A
\u
201C
\u
81EA
\u
5B9A
\u
4E49
\u
201D
\u
FF0C
\u5404\u9669\u
79CD
\u
57FA
\u6570\u
76F8
\u
540C
\u
FF0C
\u
8BF7
\u
586B
\u5199\u
201C
\u
517B
\u8001\u
57FA
\u6570\u
201D
\u
FF0C
\u5982\u
57FA
\u6570\u
4E0D
\u
540C
\u
FF0C
\u5219\u6240\u6709\u9669\u
79CD
\u
57FA
\u6570\u
90FD
\u9700\u
586B
\u5199
emp.dispatch.social.diy.medical_not.empty
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
81EA
\u
5B9A
\u
4E49
\u
7F34
\u
7EB3
\u
517B
\u8001\u
57FA
\u6570\u
548C
\u
517B
\u8001\u
8D77
\u
7F34
\u
65E5
\u
671F
\u
4E0D
\u
53EF
\u
4E3A
\u
7A7A
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
36889278
...
...
@@ -575,7 +575,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
// 新增派单信息
excel
.
setOrderId
(
orderId
);
initDispatchAddInfo
(
user
,
dispatchMap
,
empVo
,
socialSet
,
fundSet
,
excel
,
socialFund
,
injury
);
if
(
initDispatchAddInfo
(
user
,
dispatchMap
,
empVo
,
socialSet
,
fundSet
,
excel
,
socialFund
,
injury
)){
excelVOTemp
.
put
(
excel
.
getRowIndex
().
toString
(),
excel
.
getEmpIdcard
());
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_ITEM_EMPTY_EXISTS
)));
continue
;
}
if
(
Common
.
isNotNull
(
dispatchMap
.
get
(
excel
.
getEmpIdcard
()))
&&
"公积金"
.
equals
(
dispatchMap
.
get
(
excel
.
getEmpIdcard
()).
getDispatchItem
())){
socialsMap
.
remove
(
excel
.
getEmpIdcard
());
excel
.
setSocialHousehold
(
null
);
}
// 变更社保公积金查询
initSocialFundAddInfo
(
socialFundAddMap
,
empVo
,
socialSet
,
fundSet
,
setInfoVo
,
socialFund
,
excel
);
}
...
...
@@ -688,6 +696,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
social
)){
dispatch
.
setSocialId
(
social
.
getId
());
dispatch
.
setSocialHouseholdName
(
social
.
getSocialHouseholdName
());
dispatch
.
setFirstBuyMonthSocial
(
getFirstBuyMonthSocial
(
social
));
}
if
(
Common
.
isNotNull
(
fund
)){
dispatch
.
setFundId
(
fund
.
getId
());
...
...
@@ -699,13 +708,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
project
)){
dispatch
.
setEmpNo
(
project
.
getEmpNo
());
}
}
dispatch
.
setFirstBuyMonthSocial
(
getFirstBuyMonthSocial
(
social
));
insertDispatch
(
emp
,
dispatch
);
// 新增派单申请提交记录
auditInfo
=
new
TAuditInfo
();
addAuditInfo
(
dispatch
,
auditInfo
);
}
}
// 插入或更新社保公积金查询信息 大病在封装社保的时候已经算了 大病技术和金额了
if
(
Common
.
isNotNull
(
socialFundAddMap
)){
socialFund
=
socialFundAddMap
.
get
(
excel
.
getEmpIdcard
());
...
...
@@ -1179,7 +1187,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
int
num
=
3
-
nowNums
.
length
();
return
zeroArr
[
num
]
+
nowNums
;
}
private
void
initDispatchAddInfo
(
YifuUser
user
,
private
boolean
initDispatchAddInfo
(
YifuUser
user
,
Map
<
String
,
TDispatchInfo
>
dispatchMap
,
DispatchEmpVo
empVo
,
SysBaseSetInfo
socialSet
,
...
...
@@ -1191,6 +1199,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 初始化派单项
dispatch
.
setOrderId
(
excel
.
getOrderId
());
initAddHandleItem
(
excel
,
socialFund
,
dispatch
,
socialSet
,
injury
);
if
(
Common
.
isEmpty
(
dispatch
.
getDispatchItem
())){
return
true
;
}
dispatch
.
setOrganName
(
user
.
getDeptName
());
dispatch
.
setCreateBy
(
user
.
getId
());
dispatch
.
setCreateTime
(
LocalDateTime
.
now
());
...
...
@@ -1210,7 +1221,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch
.
setSettleDomainName
(
excel
.
getDepartName
());
dispatch
.
setSettleDomainCode
(
excel
.
getSettleDomainCode
());
dispatch
.
setSettleDomain
(
excel
.
getSettleDomainId
());
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())){
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())
&&
!
"公积金"
.
equals
(
dispatch
.
getDispatchItem
())
){
dispatch
.
setSocialHandleStatus
(
CommonConstants
.
ZERO_STRING
);
}
if
(
Common
.
isNotNull
(
excel
.
getProvidentHousehold
())){
...
...
@@ -1281,6 +1292,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 生成申请编码
dispatch
.
setApplyNo
(
getApplyCode
());
dispatchMap
.
put
(
excel
.
getEmpIdcard
(),
dispatch
);
return
false
;
}
private
void
initAddHandleItem
(
TDispatchImportVo
excel
,
TSocialFundInfo
socialFund
,
TDispatchInfo
dispatch
,
SysBaseSetInfo
socialSet
,
boolean
injury
)
{
...
...
@@ -2721,6 +2733,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
excelVOTemp
.
put
(
excel
.
getRowIndex
().
toString
(),
excel
.
getEmpIdcard
());
// 初始化派单 和 社保公积金查询信息
dispatch
=
getDispatchInfo
(
empVo
,
excel
,
socialFund
,
setInfoVo
,
user
);
if
(
Common
.
isEmpty
(
dispatch
.
getDispatchItem
())){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_ITEM_EMPTY_EXISTS
)));
continue
;
}
try
{
dispatch
.
setOrderId
(
orderId
);
dispatch
.
setApplyNo
(
getApplyCode
());
...
...
@@ -4076,6 +4092,17 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBigailmentHandle
()))){
sf
.
setSocialStatus
(
CommonConstants
.
TWELVE_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
SIX_STRING
);
sf
.
setSocialReduceDate
(
null
);
}
if
(
CommonConstants
.
NINE_STRING
.
equals
(
sf
.
getSocialStatus
())
&&
(
CommonConstants
.
THREE_STRING
.
equals
(
sf
.
getPensionHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
sf
.
getMedicalHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
sf
.
getUnemployHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
sf
.
getBirthHandle
())
||
CommonConstants
.
THREE_STRING
.
equals
(
sf
.
getBigailmentHandle
()))){
sf
.
setSocialStatus
(
CommonConstants
.
TWELVE_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
SIX_STRING
);
}
}
// 2.派增处理 socialType 社保拆分的每一项(1养老 2医疗 3失业 4工伤 5生育 6大病)
...
...
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