|
@@ -67,7 +67,9 @@ public class ViewController extends Controller {
|
|
|
public void test() {
|
|
|
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 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");
|
|
|
+
|
|
|
if (studyidfinds == null) {
|
|
|
return;
|
|
|
}
|
|
@@ -101,8 +103,10 @@ 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());
|
|
|
- if (studyidfindsde == null) {
|
|
|
+// 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");
|
|
|
+
|
|
|
+ if (studyidfindsde == null) {
|
|
|
return;
|
|
|
}
|
|
|
for (Record studyidfind : studyidfindsde) {
|