刘韬 2 jaren geleden
bovenliggende
commit
2f97f35d3e

+ 2 - 2
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 order by createAt asc limit 1");
+			List<Record> studyidfinds = Db.use("local").find("select * from study where status =1 asc limit 1");
 
 			if (studyidfinds == null) {
 				return;
@@ -104,7 +104,7 @@ public class ViewController extends Controller {
 			
 			//延迟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",parseStringToDate2());
-			List<Record> studyidfindsde = Db.use("local").find("select * from study where status =1 or status =2 order by createAt 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;

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