代码生成支持选择上级菜单

pull/173/MERGE
RuoYi 2020-07-08 17:07:49 +08:00
parent b7aa9f3f42
commit 154b8d9db8
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ public class VelocityUtils
*/
public static String getParentMenuId(JSONObject paramsObj)
{
if (paramsObj.containsKey(GenConstants.PARENT_MENU_ID))
if (StringUtils.isNotEmpty(paramsObj) && paramsObj.containsKey(GenConstants.PARENT_MENU_ID))
{
return paramsObj.getString(GenConstants.PARENT_MENU_ID);
}