刘韬 3 yıl önce
ebeveyn
işleme
518211df06

+ 3 - 2
DataFusion/src/com/zskk/task/DownloadTask.java

@@ -52,13 +52,14 @@ public class DownloadTask implements ITask {
 			Date nowDate = new Date(); 
 			Long due = nowDate.getTime() - creatDate.getTime();
 			//延时30min
-			if (due < 1800000) {
+			if (due < 1200000) {
 				return;
 			}
 			//状态4:下载中
 			studyidfind.set("status", 4);
 			Db.use("local").update("study", studyidfind);
-			List<Record> dicomfind = Db.use("connected_dicom").find("select * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
+			Record dicomfindtemp = Db.use("connected_dicom").findFirst("select * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
+			List<Record> dicomfind = Db.use("connected_dicom").find("select * from dicominfo where patientNum=?",dicomfindtemp.getStr("patientNum"));
 			for (Record record : dicomfind) {
 				Request request = new Request.Builder()
 				        .url(record.getStr("URL"))