diff --git a/backend/src/main/java/io/dataease/service/panel/PanelLinkService.java b/backend/src/main/java/io/dataease/service/panel/PanelLinkService.java index e2b6834c2a..6fe1ce190f 100644 --- a/backend/src/main/java/io/dataease/service/panel/PanelLinkService.java +++ b/backend/src/main/java/io/dataease/service/panel/PanelLinkService.java @@ -136,6 +136,10 @@ public class PanelLinkService { PanelLinkExample example = new PanelLinkExample(); example.createCriteria().andResourceIdEqualTo(resourceId); mapper.deleteByExample(example); + + PanelLinkMappingExample mappingExample = new PanelLinkMappingExample(); + mappingExample.createCriteria().andResourceIdEqualTo(resourceId); + panelLinkMappingMapper.deleteByExample(mappingExample); } public String decryptParam(String text) throws Exception {