|
@@ -95,8 +95,12 @@ public class ViewController extends Controller {
|
|
|
Db.use("local").update("study", studyidfind);
|
|
|
dicomfind = Db.use("connected_dicom").find("select top 2000 * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
|
|
|
for (Record record : dicomfind) {
|
|
|
+ String urlString = record.getStr("URL");
|
|
|
+ if (urlString.isBlank()) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Request request = new Request.Builder()
|
|
|
- .url(record.getStr("URL"))
|
|
|
+ .url(urlString)
|
|
|
.build();
|
|
|
aString =aString+record.getStr("URL")+"/n";
|
|
|
try (Response response = OKHTTP_CLIENT.newCall(request).execute()) {
|