刘韬 2 年之前
父節點
當前提交
0d7fd18a6b
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      DataFusion/src/com/zskk/control/ViewController.java
  2. 2 2
      DataFusion/src/com/zskk/task/CMoveTask.java

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

@@ -68,7 +68,7 @@ public class ViewController extends Controller {
 		try {
 			//延迟10分钟获取影像,并且查找状态为待CMOVE和错误状态的检查
 //			List<Record> studyidfinds = Db.use("local").find("select * from study where status =1 and createAt<? order by createAt asc limit 1",parseStringToDate2());
-			List<Record> studyidfinds = Db.use("local").find("select * from study where status =1 asc limit 1");
+			List<Record> studyidfinds = Db.use("local").find("select * from study where status =1 limit 1");
 
 			if (studyidfinds == null) {
 				return;

+ 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 asc limit 1");
+		List<Record> studyidfinds = Db.use("local").find("select * from study where status =1 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 desc limit 1");
+				List<Record> studyidfindsde = Db.use("local").find("select * from study where status =1 or status =2 limit 1");
 				if (studyidfindsde == null) {
 					return;
 				}