Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
39809336
Commit
39809336
authored
Apr 12, 2022
by
Zheng Jie
Browse files
update
parent
b5cdf551
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
39809336
...
...
@@ -4,3 +4,4 @@
*/target/*
*/*.iml
/.gradle/
/application.pid
eladmin-system/src/main/java/me/zhengjie/modules/system/rest/MenuController.java
View file @
39809336
...
...
@@ -126,7 +126,7 @@ public class MenuController {
@PutMapping
@PreAuthorize
(
"@el.check('menu:edit')"
)
public
ResponseEntity
<
Object
>
updateMenu
(
@Validated
(
Menu
.
Update
.
class
)
@RequestBody
Menu
resources
){
if
(
resources
.
getId
()
<=
1
1
6
){
if
(
resources
.
getId
()
<=
1
2
6
){
throw
new
BadRequestException
(
"演示环境不可操作"
);
}
menuService
.
update
(
resources
);
...
...
@@ -140,7 +140,7 @@ public class MenuController {
public
ResponseEntity
<
Object
>
deleteMenu
(
@RequestBody
Set
<
Long
>
ids
){
Set
<
Menu
>
menuSet
=
new
HashSet
<>();
for
(
Long
id
:
ids
)
{
if
(
id
<=
1
1
6
){
if
(
id
<=
1
2
6
){
throw
new
BadRequestException
(
"演示环境不可操作"
);
}
List
<
MenuDto
>
menuList
=
menuService
.
getMenus
(
id
);
...
...
Write
Preview
Supports
Markdown
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