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
fb44737d
Commit
fb44737d
authored
Dec 08, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
ac851803
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
SysHouseHoldInfoServiceImpl.java
...yifu/social/service/impl/SysHouseHoldInfoServiceImpl.java
+19
-14
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/SysHouseHoldInfoServiceImpl.java
View file @
fb44737d
...
...
@@ -124,13 +124,18 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
if
(
Common
.
isEmpty
(
hold
.
getId
())){
return
R
.
failed
(
CommonConstants
.
PARAM_INFO_ERROR
);
}
if
(
Common
.
isEmpty
(
hold
.
getAuditUser
())
||
Common
.
isEmpty
(
hold
.
getHandleUser
()))
{
return
R
.
failed
(
"审核人或办理人必填!"
);
}
SysHouseHoldInfo
holdInfo
=
baseMapper
.
selectById
(
hold
.
getId
());
if
(
Common
.
isEmpty
(
holdInfo
)){
return
R
.
failed
(
CommonConstants
.
NO_DATA_TO_HANDLE
);
}
// 编辑标志 true:编辑;false:启用禁用(说明不需要拦截其他必填项)
boolean
isEdit
=
true
;
if
(
Common
.
isEmpty
(
hold
.
getType
())
&&
Common
.
isNotNull
(
hold
.
getDelFlag
()))
{
isEdit
=
false
;
}
if
(
isEdit
&&
(
Common
.
isEmpty
(
hold
.
getAuditUser
())
||
Common
.
isEmpty
(
hold
.
getHandleUser
())))
{
return
R
.
failed
(
"审核人或办理人必填!"
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
hold
.
getDelFlag
())
&&
baseSetInfoMapper
.
selectCount
(
Wrappers
.<
SysBaseSetInfo
>
query
().
lambda
()
.
eq
(
SysBaseSetInfo:
:
getBaseType
,
holdInfo
.
getType
())
...
...
@@ -144,18 +149,18 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
}
int
res
=
baseMapper
.
updateById
(
hold
);
if
(
res
>=
0
){
// 新老数据审核人办理人不同,先删除,再添加
if
(
Common
.
isNotNull
(
holdInfo
.
getAuditUser
())
&&
!
holdInfo
.
getAuditUser
().
equals
(
hold
.
getAuditUser
()))
{
tSocialfundHouseResService
.
deleteAuditUser
(
holdInfo
);
if
(
isEdit
)
{
// 新老数据审核人办理人不同,先删除,再添加
if
(
Common
.
isNotNull
(
holdInfo
.
getAuditUser
())
&&
!
holdInfo
.
getAuditUser
().
equals
(
hold
.
getAuditUser
()))
{
tSocialfundHouseResService
.
deleteAuditUser
(
holdInfo
);
}
if
(
Common
.
isNotNull
(
holdInfo
.
getHandleUser
())
&&
!
holdInfo
.
getHandleUser
().
equals
(
hold
.
getHandleUser
()))
{
tSocialfundHouseResService
.
deleteHandleUser
(
holdInfo
);
}
// 同步审核权限、办理权限
this
.
saveAuditUserOrHandleUser
(
hold
,
CommonConstants
.
ZERO_STRING
);
this
.
saveAuditUserOrHandleUser
(
hold
,
CommonConstants
.
ONE_STRING
);
}
if
(
Common
.
isNotNull
(
holdInfo
.
getHandleUser
())
&&
!
holdInfo
.
getHandleUser
().
equals
(
hold
.
getHandleUser
()))
{
tSocialfundHouseResService
.
deleteHandleUser
(
holdInfo
);
}
// 同步审核权限、办理权限
this
.
saveAuditUserOrHandleUser
(
hold
,
CommonConstants
.
ZERO_STRING
);
this
.
saveAuditUserOrHandleUser
(
hold
,
CommonConstants
.
ONE_STRING
);
return
R
.
ok
();
}
else
{
return
R
.
failed
(
CommonConstants
.
SAVE_FAILED
);
...
...
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