|
@@ -23,7 +23,7 @@ public class ReCMoveTask implements ITask {
|
|
|
// return;
|
|
|
// }
|
|
|
//2小时到2天内的检查重新获取
|
|
|
- List<Record> studyidfinds = Db.use("local").find("select * from study where status =3 and updateAt between ? and ? and (modalities like '%CT%' or modalities like '%MR%' or modalities like '%DX%' or modalities like '%CR%') order by createAt asc limit 3", parseStringToDateTo(), parseStringToDateFrom());
|
|
|
+ List<Record> studyidfinds = Db.use("local").find("select * from study where status =3 and updateAt between ? and ? and (modalities like '%CT%' or modalities like '%MR%' or modalities like '%DX%' or modalities like '%CR%') order by createAt asc limit 2", parseStringToDateTo(), parseStringToDateFrom());
|
|
|
if (studyidfinds == null) {
|
|
|
return;
|
|
|
}
|
|
@@ -67,7 +67,7 @@ public class ReCMoveTask implements ITask {
|
|
|
private String parseStringToDateFrom() {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
Date date = new Date();
|
|
|
- long dInteger = date.getTime() - 5400000;
|
|
|
+ long dInteger = date.getTime() - 43200000;
|
|
|
String daString = sdf.format(new Date(dInteger));
|
|
|
return daString;
|
|
|
|