刘韬 3 년 전
부모
커밋
518211df06
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      DataFusion/src/com/zskk/task/DownloadTask.java

+ 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"))