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

update

parent b5cdf551
......@@ -4,3 +4,4 @@
*/target/*
*/*.iml
/.gradle/
/application.pid
......@@ -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() <= 116){
if(resources.getId() <= 126){
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 <= 116){
if(id <= 126){
throw new BadRequestException("演示环境不可操作");
}
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