Commit 8ccd8a63 by guojuxing

编辑为仅超管可用时候,删除权限项关联

parent 4bcf3094
...@@ -32,8 +32,10 @@ public class MenuItemServiceImpl implements MenuItemService{ ...@@ -32,8 +32,10 @@ public class MenuItemServiceImpl implements MenuItemService{
@Override @Override
public void deleteByMenuIdList(List<Integer> menuId) { public void deleteByMenuIdList(List<Integer> menuId) {
if (CollectionUtils.isNotEmpty(menuId)) {
tabSysMenuItemMapper.deleteByMenuIdList(menuId); tabSysMenuItemMapper.deleteByMenuIdList(menuId);
} }
}
@Override @Override
public void deleteByItemId(Integer itemId) { public void deleteByItemId(Integer itemId) {
......
...@@ -152,8 +152,10 @@ public class MenuServiceImpl implements MenuService { ...@@ -152,8 +152,10 @@ public class MenuServiceImpl implements MenuService {
@Override @Override
public void deleteByMenuIdList(List<Integer> menuIdList) { public void deleteByMenuIdList(List<Integer> menuIdList) {
if (CollectionUtils.isNotEmpty(menuIdList)) {
tabSysMenuMapper.deleteByMenuIdList(menuIdList); tabSysMenuMapper.deleteByMenuIdList(menuIdList);
} }
}
private void updateSort(Integer sort, Integer id) { private void updateSort(Integer sort, Integer id) {
TabSysMenu record = new TabSysMenu(); TabSysMenu record = new TabSysMenu();
......
Markdown is supported
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