Commit 39870a2e authored by 梁光意's avatar 梁光意

修改发布仪表盘不存在的报错的问题

parent a3f54d78
...@@ -78,6 +78,9 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane ...@@ -78,6 +78,9 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
InstrumentPanelPermissionDTO permission = config.getPermission(); InstrumentPanelPermissionDTO permission = config.getPermission();
checkAll(appId, config, permission); checkAll(appId, config, permission);
InstrumentPanel panel = panelService.getById(config.getPanelId()); InstrumentPanel panel = panelService.getById(config.getPanelId());
if (panel == null){
throw new SysException("仪表盘不存在,请重新选择");
}
fillPanelProp(permission, panel, PublishedStatus.PUBLISHED.value); fillPanelProp(permission, panel, PublishedStatus.PUBLISHED.value);
log.info("删除仪表板配置详情"); log.info("删除仪表板配置详情");
delConfig(config.getPanelId(), null); delConfig(config.getPanelId(), null);
......
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