Commit 39809336 authored by Zheng Jie's avatar Zheng Jie
Browse files

update

parent b5cdf551
...@@ -4,3 +4,4 @@ ...@@ -4,3 +4,4 @@
*/target/* */target/*
*/*.iml */*.iml
/.gradle/ /.gradle/
/application.pid
...@@ -126,7 +126,7 @@ public class MenuController { ...@@ -126,7 +126,7 @@ public class MenuController {
@PutMapping @PutMapping
@PreAuthorize("@el.check('menu:edit')") @PreAuthorize("@el.check('menu:edit')")
public ResponseEntity<Object> updateMenu(@Validated(Menu.Update.class) @RequestBody Menu resources){ public ResponseEntity<Object> updateMenu(@Validated(Menu.Update.class) @RequestBody Menu resources){
if(resources.getId() <= 116){ if(resources.getId() <= 126){
throw new BadRequestException("演示环境不可操作"); throw new BadRequestException("演示环境不可操作");
} }
menuService.update(resources); menuService.update(resources);
...@@ -140,7 +140,7 @@ public class MenuController { ...@@ -140,7 +140,7 @@ public class MenuController {
public ResponseEntity<Object> deleteMenu(@RequestBody Set<Long> ids){ public ResponseEntity<Object> deleteMenu(@RequestBody Set<Long> ids){
Set<Menu> menuSet = new HashSet<>(); Set<Menu> menuSet = new HashSet<>();
for (Long id : ids) { for (Long id : ids) {
if(id <= 116){ if(id <= 126){
throw new BadRequestException("演示环境不可操作"); throw new BadRequestException("演示环境不可操作");
} }
List<MenuDto> menuList = menuService.getMenus(id); List<MenuDto> menuList = menuService.getMenus(id);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment