菜单 pid 设置null问题
This commit is contained in:
@@ -124,7 +124,10 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||||||
if (menuEditDTO.getApiInfo() != null && !menuEditDTO.getApiInfo().isEmpty()) {
|
if (menuEditDTO.getApiInfo() != null && !menuEditDTO.getApiInfo().isEmpty()) {
|
||||||
menu.setApiInfo(JSONObject.toJSONString(menuEditDTO.getApiInfo()));
|
menu.setApiInfo(JSONObject.toJSONString(menuEditDTO.getApiInfo()));
|
||||||
}
|
}
|
||||||
return updateById(menu);
|
if (menuEditDTO.getPid() == null) {
|
||||||
|
menu.setPid(null);
|
||||||
|
}
|
||||||
|
return updateById(menu, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user