Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
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
base_platform_enterprise
gic-platform-auth
Commits
b5afbd5f
Commit
b5afbd5f
authored
Jun 12, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门职位,如果是空的时候,则置空
parent
756bcc35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
MenuAuthDepartService.java
...main/java/com/gic/auth/service/MenuAuthDepartService.java
+2
-1
MenuAuthDepartServiceImpl.java
.../com/gic/auth/service/impl/MenuAuthDepartServiceImpl.java
+2
-2
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+4
-4
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/MenuAuthDepartService.java
View file @
b5afbd5f
...
...
@@ -13,9 +13,10 @@ public interface MenuAuthDepartService {
* @Description:
* @author guojuxing
* @param list
* @param menuCode 菜单code
* @return void
*/
void
saveFetch
(
List
<
MenuAuthDepartDTO
>
list
);
void
saveFetch
(
List
<
MenuAuthDepartDTO
>
list
,
String
menuCode
);
/**
* 查询菜单的所有部门职位
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/impl/MenuAuthDepartServiceImpl.java
View file @
b5afbd5f
...
...
@@ -16,9 +16,9 @@ public class MenuAuthDepartServiceImpl implements MenuAuthDepartService{
private
TabSysMenuAuthDepartMapper
tabSysMenuAuthDepartMapper
;
@Override
public
void
saveFetch
(
List
<
MenuAuthDepartDTO
>
list
)
{
public
void
saveFetch
(
List
<
MenuAuthDepartDTO
>
list
,
String
menuCode
)
{
tabSysMenuAuthDepartMapper
.
deleteByMenuCode
(
menuCode
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
tabSysMenuAuthDepartMapper
.
deleteByMenuCode
(
list
.
get
(
0
).
getMenuCode
());
tabSysMenuAuthDepartMapper
.
saveFetch
(
list
);
}
}
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
b5afbd5f
...
...
@@ -421,7 +421,7 @@ public class MenuApiServiceImpl implements MenuApiService {
setMenuAuthType
(
menuDTO
);
menuService
.
updatePage
(
menuDTO
);
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
());
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
()
,
menuDTO
.
getMenuCode
()
);
//同时更新子集的父级code数据
menuService
.
updateParentCodeByParentId
(
menuDTO
.
getMenuId
(),
menuDTO
.
getMenuCode
());
...
...
@@ -736,7 +736,7 @@ public class MenuApiServiceImpl implements MenuApiService {
setNormalFieldValue
(
menuDTO
);
setMenuAuthType
(
menuDTO
);
menuService
.
savePage
(
menuDTO
);
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
());
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
()
,
menuDTO
.
getMenuCode
()
);
return
ServiceResponse
.
success
();
}
...
...
@@ -789,7 +789,7 @@ public class MenuApiServiceImpl implements MenuApiService {
setMenuAuthType
(
menuDTO
);
Integer
menuId
=
menuService
.
savePage
(
menuDTO
);
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
());
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
()
,
menuDTO
.
getMenuCode
()
);
return
ServiceResponse
.
success
(
menuId
);
}
...
...
@@ -839,7 +839,7 @@ public class MenuApiServiceImpl implements MenuApiService {
setMenuVersion
(
menuDTO
);
setMenuAuthType
(
menuDTO
);
menuService
.
updatePage
(
menuDTO
);
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
());
menuAuthDepartService
.
saveFetch
(
menuDTO
.
getMenuAuthDepartList
()
,
menuDTO
.
getMenuCode
()
);
//同时更新子集的父级code数据
menuService
.
updateParentCodeByParentId
(
menuDTO
.
getMenuId
(),
menuDTO
.
getMenuCode
());
...
...
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