Commit 8ccd8a63 by guojuxing

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

parent 4bcf3094
......@@ -32,7 +32,9 @@ public class MenuItemServiceImpl implements MenuItemService{
@Override
public void deleteByMenuIdList(List<Integer> menuId) {
tabSysMenuItemMapper.deleteByMenuIdList(menuId);
if (CollectionUtils.isNotEmpty(menuId)) {
tabSysMenuItemMapper.deleteByMenuIdList(menuId);
}
}
@Override
......
......@@ -152,7 +152,9 @@ public class MenuServiceImpl implements MenuService {
@Override
public void deleteByMenuIdList(List<Integer> menuIdList) {
tabSysMenuMapper.deleteByMenuIdList(menuIdList);
if (CollectionUtils.isNotEmpty(menuIdList)) {
tabSysMenuMapper.deleteByMenuIdList(menuIdList);
}
}
private void updateSort(Integer sort, Integer id) {
......
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