刘韬 3 years ago
parent
commit
b6021c98ef

+ 3 - 3
DataFusion/src/com/zskk/config/ZskkConfig.java

@@ -109,9 +109,9 @@ public class ZskkConfig extends JFinalConfig {
 		me.add(inData);
 		
 		//下载检查影像
-		Cron4jPlugin mvData = new Cron4jPlugin();
-		mvData.addTask("*/1 * * * *", new DownloadTask());
-		me.add(mvData);
+//		Cron4jPlugin mvData = new Cron4jPlugin();
+//		mvData.addTask("*/1 * * * *", new DownloadTask());
+//		me.add(mvData);
 		
 //		//更新患者信息检查影像
 //		Cron4jPlugin ifData = new Cron4jPlugin();

+ 3 - 3
DataFusion/src/com/zskk/control/ViewController.java

@@ -93,7 +93,7 @@ public class ViewController extends Controller {
 			//状态4:下载中
 			studyidfind.set("status", 4);
 			Db.use("local").update("study", studyidfind);
-			 dicomfind = Db.use("connected_dicom").find("select top 1000 * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
+			 dicomfind = Db.use("connected_dicom").find("select top 2000 * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
 			for (Record record : dicomfind) {
 				Request request = new Request.Builder()
 				        .url(record.getStr("URL"))
@@ -114,9 +114,9 @@ public class ViewController extends Controller {
 			studyidfind.set("status", 3);
 			Db.use("local").update("study", studyidfind);
 		}
-//		renderText(aString+"**************"+bString);
+		renderText(aString+"**************"+bString);
 
-		renderText(dicomfind.toString());
+//		renderText(dicomfind.toString());
 	}
 	
 	

+ 1 - 1
DataFusion/src/com/zskk/task/DownloadTask.java

@@ -58,7 +58,7 @@ public class DownloadTask implements ITask {
 			//状态4:下载中
 			studyidfind.set("status", 4);
 			Db.use("local").update("study", studyidfind);
-			List<Record> dicomfind = Db.use("connected_dicom").find("select top 2000 * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
+			List<Record> dicomfind = Db.use("connected_dicom").find("select top 1000 * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
 			for (Record record : dicomfind) {
 				Request request = new Request.Builder()
 				        .url(record.getStr("URL"))