mirror of https://github.com/elunez/eladmin
update
parent
b5cdf5512b
commit
3980933644
|
@ -4,3 +4,4 @@
|
||||||
*/target/*
|
*/target/*
|
||||||
*/*.iml
|
*/*.iml
|
||||||
/.gradle/
|
/.gradle/
|
||||||
|
/application.pid
|
||||||
|
|
|
@ -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 {
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue