瀏覽代碼

取消重新cmove限制

LAPTOP-5NTQJPUS\LT 9 月之前
父節點
當前提交
63aaacc95a
共有 1 個文件被更改,包括 11 次插入11 次删除
  1. 11 11
      DataFusion/src/com/zskk/task/ReCMoveTask.java

+ 11 - 11
DataFusion/src/com/zskk/task/ReCMoveTask.java

@@ -17,22 +17,22 @@ public class ReCMoveTask implements ITask {
 	@Override
 	@Override
 	public void run() {
 	public void run() {
 		// TODO Auto-generated method stub
 		// TODO Auto-generated method stub
-		List<Record> count = Db.use("local").find("select * from study where status =4");
-		//同时下载的队列
-		Integer flag = count.size();
-		if (flag >= 15) {
-			return;
-		}
+//		List<Record> count = Db.use("local").find("select * from study where status =4");
+//		//同时下载的队列
+//		Integer flag = count.size();
+//		if (flag >= 15) {
+//			return;
+//		}
 		//2小时到2天内的检查重新获取
 		//2小时到2天内的检查重新获取
-		List<Record> studyidfinds = Db.use("local").find("select * from study where status =3 and createAt between ? and ? and (modalities like '%CT%' or modalities like '%MR%') order by createAt asc", parseStringToDateTo(), parseStringToDateFrom());
+		List<Record> studyidfinds = Db.use("local").find("select * from study where status =3 and createAt between ? and ? and (modalities like '%CT%' or modalities like '%MR%') order by createAt asc limit 10", parseStringToDateTo(), parseStringToDateFrom());
 		if (studyidfinds == null) {
 		if (studyidfinds == null) {
 			return;
 			return;
 		}
 		}
 		for (Record studyidfind : studyidfinds) {
 		for (Record studyidfind : studyidfinds) {
-			flag++;
-			if (flag > 15) {
-				return;
-			}
+//			flag++;
+//			if (flag > 15) {
+//				return;
+//			}
 			//状态4:下载中
 			//状态4:下载中
 			studyidfind.set("status", 4);
 			studyidfind.set("status", 4);
 			Db.use("local").update("study", studyidfind);
 			Db.use("local").update("study", studyidfind);