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
6efff77f
Commit
6efff77f
authored
Aug 04, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单调整
parent
44ee2df9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
20 deletions
+76
-20
TEmployeeInfoController.java
.../v1/yifu/archives/controller/TEmployeeInfoController.java
+12
-0
TEmployeeInfoService.java
...d/plus/v1/yifu/archives/service/TEmployeeInfoService.java
+2
-0
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+10
-0
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
ArchivesDaprUtil.java
...cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
+14
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+32
-20
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeInfoController.java
View file @
6efff77f
...
...
@@ -474,4 +474,16 @@ public class TEmployeeInfoController {
public
Boolean
updateEmpInfo
(
@RequestBody
UpdateEmpVo
vo
)
{
return
tEmployeeInfoService
.
updateEmpInfo
(
vo
);
}
/**
* @Description: 查验手机号码是否存在
* @Author: fxj
* @Date: 2022/08/01 18:52
**/
@Operation
(
summary
=
"通过mobile查询是否已存在"
,
description
=
"通过mobile查询是否已存在"
)
@Inner
@PostMapping
(
"/inner/checkMobile"
)
public
Boolean
checkMobile
(
@RequestBody
String
mobile
)
{
return
tEmployeeInfoService
.
checkMobile
(
mobile
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmployeeInfoService.java
View file @
6efff77f
...
...
@@ -186,4 +186,6 @@ public interface TEmployeeInfoService extends IService<TEmployeeInfo> {
EmpDispatchAddVo
addDispatchInfo
(
EmpDispatchAddVo
addVo
);
Boolean
updateEmpInfo
(
UpdateEmpVo
vo
);
Boolean
checkMobile
(
String
mobile
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
6efff77f
...
...
@@ -2135,6 +2135,16 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
return
true
;
}
@Override
public
Boolean
checkMobile
(
String
mobile
)
{
if
(
Common
.
isEmpty
(
mobile
)){
return
true
;
}
return
!(
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeInfo
>
query
().
lambda
()
.
eq
(
TEmployeeInfo:
:
getFileStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
))
>
0
);
}
private
void
saveContract
(
Map
<
String
,
EmpProjectDispatchVo
>
projectsMap
,
Map
<
String
,
EmpContractDispatchVo
>
contractsMap
,
Map
<
String
,
EmpAddDispatchVo
>
empAddsMap
)
{
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
6efff77f
...
...
@@ -480,4 +480,8 @@ public interface ErrorCodes {
* 派增异常: 单派工伤其他起缴日期不可填写
*/
String
EMP_DISPATCH_SOCIAL_DIY_INJURY_ERROR
=
"emp.dispatch.social.diy.injury.error"
;
/**
* 派增异常: 已存在对应手机号码的在用员工档案
*/
String
EMP_DISPATCH_EMP_MOBILE_REPEAT
=
"emp.dispatch.emp.mobile.repeat"
;
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
6efff77f
...
...
@@ -183,6 +183,8 @@ emp.dispatch.reduce.fund.depart.no.error=\u6D3E\u51CF\u5F02\u5E38\uFF1A \u65E0\u
emp.dispatch.social.diy.injury.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u5355\u
6D3E
\u
5DE5
\u
4F24
\u5176\u
4ED6
\u
8D77
\u
7F34
\u
65E5
\u
671F
\u
4E0D
\u
53EF
\u
586B
\u5199
emp.dispatch.emp.mobile.repeat
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
5DF2
\u
5B58
\u5728\u
5BF9
\u
5E94
\u
624B
\u
673A
\u
53F7
\u7801\u7684\u5728\u7528\u5458\u
5DE5
\u6863\u6848
...
...
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
View file @
6efff77f
...
...
@@ -187,4 +187,18 @@ public class ArchivesDaprUtil {
}
return
res
;
}
/**
* @Author fxj
* @Description 校验手机号码重复
* @Date 22:11 2022/8/4
* @Param
* @return
**/
public
R
<
Boolean
>
checkMobile
(
String
mobile
)
{
R
<
Boolean
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprArchivesProperties
.
getAppUrl
(),
daprArchivesProperties
.
getAppId
(),
"/temployeeinfo/checkMobile"
,
mobile
,
Boolean
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)){
return
R
.
failed
(
"检验号码重复信息失败!"
);
}
return
res
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
6efff77f
...
...
@@ -1685,6 +1685,16 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
checkRes
.
getMsg
()));
return
true
;
}
// 校验手机号码重复
checkRes
=
archivesDaprUtil
.
checkMobile
(
excel
.
getEmpMobile
());
if
(
Common
.
isEmpty
(
checkRes
)
||
checkRes
.
getCode
()
!=
CommonConstants
.
SUCCESS
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
checkRes
.
getMsg
()));
return
true
;
}
if
(
checkRes
.
getData
().
booleanValue
()){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_MOBILE_REPEAT
)));
return
true
;
}
}
/*项目档案有可用状态的合同:
不对合同做判断,取值:项目档案的合同;
...
...
@@ -2212,6 +2222,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
if
(
Common
.
isNotNull
(
excel
.
getFundReduceDate
())){
// 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败9 审核不通过)、派减(5待审核 6待办理 7 办理成功 8 办理失败 )
if
(
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getFundStatus
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_FUND
);
}
dispatch
.
setFundHandleStatus
(
CommonConstants
.
ZERO_STRING
);
dispatch
.
setFundId
(
socialFund
.
getFundId
());
dispatch
.
setFundReduceDate
(
excel
.
getSocialReduceDate
());
...
...
@@ -2221,10 +2235,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialFund
.
setFundReduceDate
(
excel
.
getFundReduceDate
());
socialFund
.
setFundStatus
(
CommonConstants
.
FIVE_STRING
);
socialFund
.
setFundReduceStatus
(
CommonConstants
.
ZERO_STRING
);
// 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败9 审核不通过)、派减(5待审核 6待办理 7 办理成功 8 办理失败 )
if
(
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getFundStatus
())){
temp
.
append
(
DispatchConstants
.
DISPATCH_FUND
);
}
}
dispatch
.
setDispatchItem
(
temp
.
toString
());
dispatch
.
setBelongUnitName
(
socialFund
.
getUnitName
());
...
...
@@ -2268,8 +2278,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败)、派减(6待审核 7待办理 8办理成功 9 办理失败)
if
(
Common
.
isNotNull
(
excel
.
getSocialReduceDate
())){
if
(
Common
.
isEmpty
(
socialFund
.
getSocialStatus
())
||
(!
socialFund
.
getSocialStatus
().
equals
(
CommonConstants
.
THREE_STRING
)
&&
!
socialFund
.
getSocialStatus
().
equals
(
CommonConstants
.
NINE_STRING
))){
||
!(
socialFund
.
getSocialStatus
().
equals
(
CommonConstants
.
THREE_STRING
)
||
socialFund
.
getSocialStatus
().
equals
(
CommonConstants
.
FOUR_STRING
)
||
socialFund
.
getSocialStatus
().
equals
(
CommonConstants
.
NINE_STRING
))){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_REDUCE_SOCIAL_STATUS_ERROR
)));
return
true
;
}
...
...
@@ -2454,7 +2465,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
sf
.
setSocialAddStatus
(
CommonConstants
.
FIVE_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
TEN_STRING
);
// 更新预估数据
forecastLibraryService
.
updateForecastLibaryByDispatch
Reduce
(
sf
);
forecastLibraryService
.
updateForecastLibaryByDispatch
(
sf
);
}
socialInfo
.
setAuditTime
(
now
);
socialInfo
.
setAuditUser
(
user
.
getId
());
...
...
@@ -2505,7 +2516,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
sf
.
setFundAddStatus
(
CommonConstants
.
FOUR_STRING
);
sf
.
setFundStatus
(
CommonConstants
.
NINE_STRING
);
// 更新预估数据
forecastLibraryService
.
updateForecastLibaryByDispatch
Reduce
(
sf
);
forecastLibraryService
.
updateForecastLibaryByDispatch
(
sf
);
}
providentFund
.
setAuditTime
(
now
);
providentFund
.
setAuditUser
(
user
.
getId
());
...
...
@@ -2516,7 +2527,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
providentFund
.
setReduceCan
(
CommonConstants
.
ONE_STRING
);
sf
.
setFundReduceStatus
(
CommonConstants
.
ONE_STRING
);
sf
.
setFundStatus
(
CommonConstants
.
EIGHT
_STRING
);
sf
.
setFundStatus
(
CommonConstants
.
SIX
_STRING
);
// 审核不通过
}
else
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
// 作废更新:公积金状态、同步档案的公积金状态
...
...
@@ -2541,13 +2552,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 派单状态信息拼接
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
remark
+=
"审核通过:"
+
auditRemark
;
initAuditInfo
(
auditInfo
,
remark
,
CommonConstants
.
ONE_STRING
,
user
,
remark
);
}
else
{
remark
+=
"审核不通过:"
+
auditRemark
;
initAuditInfo
(
auditInfo
,
remark
,
CommonConstants
.
TWO_STRING
,
user
,
remark
);
}
//记录处理意见到派单 最新的意见会覆盖之前的,详情 到流程中查询
dis
.
setHandleRemark
(
ServiceUtil
.
ifNullToEmpty
(
auditRemark
));
dis
.
setAuditRemark
(
ServiceUtil
.
ifNullToEmpty
(
auditRemark
));
initAuditInfo
(
auditInfo
,
remark
,
auditStatus
,
user
,
remark
);
auditInfo
.
setDispatchInfoId
(
dis
.
getId
());
//更新派单状态
if
(
CommonConstants
.
ZERO_INT
==
flag
.
intValue
())
{
...
...
@@ -2737,7 +2749,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 派增办理,全部失败,清空社保状态
if
(
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getHandleStatus
()))
{
// 同步预估库数据
forecastLibraryService
.
updateForecastLibaryByDispatch
Reduce
(
sf
);
forecastLibraryService
.
updateForecastLibaryByDispatch
(
sf
);
}
socialMapper
.
updateById
(
socialInfo
);
dis
.
setSocialHandleRemark
(
ServiceUtil
.
ifNullToEmpty
(
handleRemark
));
...
...
@@ -2747,13 +2759,13 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
temp
.
append
(
DispatchConstants
.
DISPATCH_SOCIAL_ADD
);
temp
.
append
(
socialTypeRemark
);
temp
.
append
(
DispatchConstants
.
DISPATCH_HANDLE_SUCCESS
);
initAuditInfo
(
auditInfo
,
(
temp
+
handleRemark
),
handleStatus
,
user
,
temp
.
toString
());
initAuditInfo
(
auditInfo
,
(
temp
+
handleRemark
),
CommonConstants
.
THREE_STRING
,
user
,
temp
.
toString
());
}
else
{
temp
.
setLength
(
CommonConstants
.
ZERO_INT
);
temp
.
append
(
DispatchConstants
.
DISPATCH_SOCIAL_ADD
);
temp
.
append
(
socialTypeRemark
);
temp
.
append
(
DispatchConstants
.
DISPATCH_HANDLE_FAIL
);
initAuditInfo
(
auditInfo
,
(
temp
+
handleRemark
),
handleStatus
,
user
,
temp
.
toString
());
initAuditInfo
(
auditInfo
,
(
temp
+
handleRemark
),
CommonConstants
.
FOUR_STRING
,
user
,
temp
.
toString
());
}
auditInfo
.
setSocialId
(
dis
.
getId
());
}
else
{
...
...
@@ -2780,14 +2792,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
sf
.
setFundAddStatus
(
CommonConstants
.
THREE_STRING
);
sf
.
setFundStatus
(
CommonConstants
.
FOUR_STRING
);
// 同步预估库数据
forecastLibraryService
.
updateForecastLibaryByDispatch
Reduce
(
sf
);
forecastLibraryService
.
updateForecastLibaryByDispatch
(
sf
);
}
fundMapper
.
updateById
(
providentFund
);
dis
.
setFundHandleRemark
(
ServiceUtil
.
ifNullToEmpty
(
handleRemark
));
if
(
CommonConstants
.
ZERO_INT
==
flag
)
{
initAuditInfo
(
auditInfo
,
(
DispatchConstants
.
DISPATCH_FUND_ADD_SUCCESS
+
handleRemark
),
handleStatus
,
user
,
DispatchConstants
.
DISPATCH_FUND_ADD_SUCCESS
);
initAuditInfo
(
auditInfo
,
(
DispatchConstants
.
DISPATCH_FUND_ADD_SUCCESS
+
handleRemark
),
CommonConstants
.
THREE_STRING
,
user
,
DispatchConstants
.
DISPATCH_FUND_ADD_SUCCESS
);
}
else
{
initAuditInfo
(
auditInfo
,
(
DispatchConstants
.
DISPATCH_FUND_ADD_FAIL
+
handleRemark
),
handleStatus
,
user
,
DispatchConstants
.
DISPATCH_FUND_ADD_FAIL
);
initAuditInfo
(
auditInfo
,
(
DispatchConstants
.
DISPATCH_FUND_ADD_FAIL
+
handleRemark
),
CommonConstants
.
FOUR_STRING
,
user
,
DispatchConstants
.
DISPATCH_FUND_ADD_FAIL
);
}
auditInfo
.
setProvidentId
(
dis
.
getId
());
}
else
{
...
...
@@ -2834,14 +2846,14 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
temp
.
append
(
socialTypeRemark
.
toString
());
temp
.
append
(
DispatchConstants
.
DISPATCH_HANDLE_SUCCESS
);
temp
.
append
(
handleRemark
);
initAuditInfo
(
auditInfo
,
temp
.
toString
(),
handleStatus
,
user
,
temp
.
toString
());
initAuditInfo
(
auditInfo
,
temp
.
toString
(),
CommonConstants
.
THREE_STRING
,
user
,
temp
.
toString
());
}
else
{
temp
.
setLength
(
CommonConstants
.
ZERO_INT
);
temp
.
append
(
DispatchConstants
.
DISPATCH_SOCIAL_REDUCE
);
temp
.
append
(
socialTypeRemark
.
toString
());
temp
.
append
(
DispatchConstants
.
DISPATCH_HANDLE_FAIL
);
temp
.
append
(
handleRemark
);
initAuditInfo
(
auditInfo
,
temp
.
toString
(),
handleStatus
,
user
,
temp
.
toString
());
initAuditInfo
(
auditInfo
,
temp
.
toString
(),
CommonConstants
.
FOUR_STRING
,
user
,
temp
.
toString
());
}
dis
.
setSocialHandleStatus
(
handleStatus
);
auditInfo
.
setSocialId
(
dis
.
getId
());
...
...
@@ -2877,10 +2889,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
fundMapper
.
updateById
(
providentFund
);
dis
.
setFundHandleRemark
(
ServiceUtil
.
ifNullToEmpty
(
handleRemark
));
if
(
CommonConstants
.
ZERO_INT
==
flag
)
{
initAuditInfo
(
auditInfo
,
(
"公积金派减办理成功:"
+
handleRemark
),
handleStatus
,
user
,
""
);
initAuditInfo
(
auditInfo
,
(
"公积金派减办理成功:"
+
handleRemark
),
CommonConstants
.
SIX_STRING
,
user
,
""
);
dis
.
setFundHandleStatus
(
CommonConstants
.
ONE_STRING
);
}
else
{
initAuditInfo
(
auditInfo
,
(
"公积金派减办理失败:"
+
handleRemark
),
handleStatus
,
user
,
""
);
initAuditInfo
(
auditInfo
,
(
"公积金派减办理失败:"
+
handleRemark
),
CommonConstants
.
FOUR_STRING
,
user
,
""
);
dis
.
setFundHandleStatus
(
CommonConstants
.
TWO_STRING
);
}
auditInfo
.
setProvidentId
(
dis
.
getId
());
...
...
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