刘韬 %!s(int64=2) %!d(string=hai) anos
pai
achega
13d08f41b1

+ 1 - 2
DataFusion/src/com/zskk/control/ViewController.java

@@ -106,8 +106,7 @@ public class ViewController extends Controller {
 						return;
 					}
 					for (Record studyidfind : studyidfindsde) {
-//						flag++;
-//						if (flag <= 5) {
+
 							//状态4:下载中
 							studyidfind.set("status", 4);
 							studyidfind.set("updateAt", parseStringToDateTime());

+ 2 - 2
DataFusion/src/com/zskk/task/CMoveTask.java

@@ -22,7 +22,7 @@ public class CMoveTask implements ITask {
 //			return;
 //		}
 		//延迟10分钟获取影像,并且查找状态为待CMOVE和错误状态的检查
-		List<Record> studyidfinds = Db.use("local").find("select * from study where status =1 and createAt<? order by createAt asc limit 1",parseStringToDate());
+		List<Record> studyidfinds = Db.use("local").find("select * from study where status =1  order by createAt asc limit 1");
 		if (studyidfinds == null) {
 			return;
 		}
@@ -56,7 +56,7 @@ public class CMoveTask implements ITask {
 		}
 		
 		//延迟10分钟获取影像,并且查找状态为待CMOVE和错误状态的检查
-				List<Record> studyidfindsde = Db.use("local").find("select * from study where status =1 or status =2 and createAt<? order by createAt desc limit 1",parseStringToDate());
+				List<Record> studyidfindsde = Db.use("local").find("select * from study where status =1 or status =2 order by createAt desc limit 1");
 				if (studyidfindsde == null) {
 					return;
 				}