fix: 删除仪表板后公共链接映射还存在

This commit is contained in:
fit2cloud-chenyw 2022-04-01 15:54:18 +08:00
parent f01ca979cd
commit 9567d5b380

View File

@ -136,6 +136,10 @@ public class PanelLinkService {
PanelLinkExample example = new PanelLinkExample(); PanelLinkExample example = new PanelLinkExample();
example.createCriteria().andResourceIdEqualTo(resourceId); example.createCriteria().andResourceIdEqualTo(resourceId);
mapper.deleteByExample(example); mapper.deleteByExample(example);
PanelLinkMappingExample mappingExample = new PanelLinkMappingExample();
mappingExample.createCriteria().andResourceIdEqualTo(resourceId);
panelLinkMappingMapper.deleteByExample(mappingExample);
} }
public String decryptParam(String text) throws Exception { public String decryptParam(String text) throws Exception {