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
5dce737e
Commit
5dce737e
authored
Apr 10, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单分项目派单状态处理
parent
922eaf59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
MenuUtil.java
...om/yifu/cloud/plus/v1/yifu/common/dapr/util/MenuUtil.java
+0
-2
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+34
-0
No files found.
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/MenuUtil.java
View file @
5dce737e
...
@@ -37,9 +37,7 @@ public class MenuUtil {
...
@@ -37,9 +37,7 @@ public class MenuUtil {
public
void
setAuthSql
(
YifuUser
user
,
BaseEntity
entity
)
{
public
void
setAuthSql
(
YifuUser
user
,
BaseEntity
entity
)
{
// 普通用户:
// 普通用户:
log
.
error
(
"userINfo:"
+
user
.
getUserGroup
()
+
"}"
+
user
.
getId
()
+
"|"
+
entity
.
getMId
());
if
(
user
!=
null
&&
Common
.
isNotNull
(
user
.
getId
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getSystemFlag
()))
{
if
(
user
!=
null
&&
Common
.
isNotNull
(
user
.
getId
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getSystemFlag
()))
{
log
.
error
(
"userINfo:"
+
user
.
getUserGroup
()
+
"}"
+
user
.
getId
()
+
"|"
+
entity
.
getMId
());
// 菜单id
// 菜单id
String
menuId
=
entity
.
getMId
();
String
menuId
=
entity
.
getMId
();
if
(
Common
.
isEmpty
(
menuId
))
{
if
(
Common
.
isEmpty
(
menuId
))
{
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
5dce737e
...
@@ -4066,6 +4066,17 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -4066,6 +4066,17 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
sf
.
setSocialStatus
(
CommonConstants
.
ELEVEN_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
ELEVEN_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
FIVE_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
FIVE_STRING
);
}
}
// 有部分办理失败的多次派单 优化,存在办理失败的 更新为 部分办理失败
if
(
CommonConstants
.
EIGHT_STRING
.
equals
(
sf
.
getSocialStatus
())
&&
(
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getPensionHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getMedicalHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getUnemployHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBirthHandle
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
sf
.
getBigailmentHandle
()))){
sf
.
setSocialStatus
(
CommonConstants
.
TWELVE_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
SIX_STRING
);
}
}
}
// 2.派增处理 socialType 社保拆分的每一项(1养老 2医疗 3失业 4工伤 5生育 6大病)
// 2.派增处理 socialType 社保拆分的每一项(1养老 2医疗 3失业 4工伤 5生育 6大病)
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getType
())
&&
Common
.
isNotNull
(
dis
.
getSocialId
())){
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getType
())
&&
Common
.
isNotNull
(
dis
.
getSocialId
())){
...
@@ -4171,6 +4182,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -4171,6 +4182,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
)
)
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))
){
){
if
(
partHandleStatus
(
socialInfo
,
sf
,
dis
))
return
;
if
(
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getPensionHandle
())
if
(
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getPensionHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getWorkInjuryHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getWorkInjuryHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getBirthHandle
())
||
CommonConstants
.
TWO_STRING
.
equals
(
socialInfo
.
getBirthHandle
())
...
@@ -4214,6 +4226,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -4214,6 +4226,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getIsIllness
()))
&&
CommonConstants
.
ZERO_STRING
.
equals
(
socialInfo
.
getIsIllness
()))
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))
||
Common
.
isEmpty
(
socialInfo
.
getBigailmentHandle
()))
){
){
// 针对增增减的情况 直接派减完成第二次派增后 无法继续办理第一次派单项的情况优化 2023-04-07 fxj
if
(
partHandleStatus
(
socialInfo
,
sf
,
dis
))
return
;
socialInfo
.
setHandleStatus
(
CommonConstants
.
THREE_STRING
);
socialInfo
.
setHandleStatus
(
CommonConstants
.
THREE_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
EIGHT_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
EIGHT_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
TWO_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
TWO_STRING
);
...
@@ -4258,6 +4272,26 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -4258,6 +4272,26 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dis
.
setSocialHandleStatus
(
CommonConstants
.
THREE_STRING
);
dis
.
setSocialHandleStatus
(
CommonConstants
.
THREE_STRING
);
}
}
private
boolean
partHandleStatus
(
TSocialInfo
socialInfo
,
TSocialFundInfo
sf
,
TDispatchInfo
dis
)
{
// 针对增增减的情况 直接派减完成第二次派增后 无法继续办理第一次派单项的情况优化 2023-04-07 fxj
if
(
CommonConstants
.
FIVE_STRING
.
equals
(
sf
.
getPensionHandle
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
sf
.
getMedicalHandle
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
sf
.
getUnemployHandle
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
sf
.
getWorkInjuryHandle
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
sf
.
getBirthHandle
())
||
CommonConstants
.
FIVE_STRING
.
equals
(
sf
.
getBigailmentHandle
())
)
{
//办理中
socialInfo
.
setHandleStatus
(
CommonConstants
.
SIX_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
ELEVEN_STRING
);
sf
.
setSocialReduceStatus
(
CommonConstants
.
FIVE_STRING
);
socialInfo
.
setReduceCan
(
CommonConstants
.
ONE_STRING
);
dis
.
setSocialHandleStatus
(
CommonConstants
.
FOUR_STRING
);
return
true
;
}
return
false
;
}
private
void
updateSocialByHandle
(
int
flag
,
TSocialInfo
socialInfo
,
TDispatchInfo
dis
,
TSocialFundInfo
sf
)
{
private
void
updateSocialByHandle
(
int
flag
,
TSocialInfo
socialInfo
,
TDispatchInfo
dis
,
TSocialFundInfo
sf
)
{
if
(
CommonConstants
.
ZERO_INT
==
flag
if
(
CommonConstants
.
ZERO_INT
==
flag
&&
Common
.
isNotNull
(
dis
.
getSocialId
())
&&
Common
.
isNotNull
(
dis
.
getSocialId
())
...
...
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