fix: 导出背景图为空存在的问题

Raod 3 years ago
parent b7ef3c0cb1
commit 885acbebe2

@ -348,6 +348,9 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi
private String replaceUrl(String imageAddress, Map<String, String> fileMap) { private String replaceUrl(String imageAddress, Map<String, String> fileMap) {
if (StringUtils.isBlank(imageAddress)) {
return "";
}
String fileId = imageAddress.substring(imageAddress.trim().length() - 36); String fileId = imageAddress.substring(imageAddress.trim().length() - 36);
String orDefault = fileMap.getOrDefault(fileId, null); String orDefault = fileMap.getOrDefault(fileId, null);
if (StringUtils.isBlank(orDefault)) { if (StringUtils.isBlank(orDefault)) {

Loading…
Cancel
Save