diff --git a/mhd_product/src/main/java/com/linke/product/application/service/menu/MenuApplicationService.java b/mhd_product/src/main/java/com/linke/product/application/service/menu/MenuApplicationService.java index 5e6e848af..7802a90a2 100644 --- a/mhd_product/src/main/java/com/linke/product/application/service/menu/MenuApplicationService.java +++ b/mhd_product/src/main/java/com/linke/product/application/service/menu/MenuApplicationService.java @@ -436,7 +436,7 @@ public class MenuApplicationService { if (CollectionUtil.isNotEmpty(customAuthOrganizations)){ customAuthOrganizations.forEach(e->{ Map map = new HashMap<>(); - map.put("menuId",e.getMenuId().toString()); + map.put("menuId",e.getMenuId() == null ? "" : e.getMenuId().toString()); map.put("tableJson",e.getTableJson()); map.put("formJson",e.getFormJson()); map.put("buttonJson",e.getButtonJson()); @@ -452,7 +452,7 @@ public class MenuApplicationService { if (CollectionUtil.isNotEmpty(customAuthUserList)){ customAuthUserList.forEach(e->{ Map map = new HashMap<>(); - map.put("menuId",e.getMenuId().toString()); + map.put("menuId",e.getMenuId() == null ? "" : e.getMenuId().toString()); map.put("tableJson",e.getTableJson()); map.put("formJson",e.getFormJson()); map.put("buttonJson",e.getButtonJson());