fix: 重新开启链接后,老的链接无效

This commit is contained in:
fit2cloud-chenyw 2022-02-15 17:07:34 +08:00
parent aa76e3be46
commit a47eb8209e

View File

@ -238,7 +238,9 @@ public class PanelLinkService {
example.createCriteria().andUuidEqualTo(uuid);
List<PanelLinkMapping> mappings = panelLinkMappingMapper.selectByExample(example);
if (CollectionUtils.isEmpty(mappings)) {
DEException.throwException("link is not exist");
PanelLink panelLink = new PanelLink();
panelLink.setResourceId("error-resource-id");
return BASEURL + buildLinkParam(panelLink);
}
PanelLinkMapping mapping = mappings.get(0);
String resourceId = mapping.getResourceId();