判断加载影像是否为PDF文件时路径字段为空切换PDF模式

master
linjj 2 years ago
parent 71212687c1
commit 8012690e0d

@ -261,13 +261,13 @@ public class CommomService {
String mapKey = "admin" + "_" + patientId; String mapKey = "admin" + "_" + patientId;
CACHE_MAP.put(mapKey, filePaths); CACHE_MAP.put(mapKey, filePaths);
} }
} } else {
} else { List<String> commomTrees = archiveDetailMapper.getPDFRATH(patientId, scanPages);
List<String> commomTrees = archiveDetailMapper.getPDFRATH(patientId, scanPages); if (!commomTrees.isEmpty()) {
if (!commomTrees.isEmpty()) { String mapKey = "admin" + "_" + patientId;
String mapKey = "admin" + "_" + patientId; CACHE_MAP.put(mapKey, commomTrees);
CACHE_MAP.put(mapKey, commomTrees);
}
} }
} }
} }

Loading…
Cancel
Save