|
@@ -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);
|