|
@@ -24,12 +24,12 @@ public class CheckTask implements ITask {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
// TODO Auto-generated method stub
|
|
|
- List<Record> record = Db.use("connectedtemp").find("select * from study where status=3 order by createAt desc limit 10");
|
|
|
+ List<Record> record = Db.use("connectedtemp").find("select * from study where status=3 and imageNum is not null order by createAt desc limit 10");
|
|
|
if (record == null) {
|
|
|
return;
|
|
|
}
|
|
|
for (Record record3 : record) {
|
|
|
- int i = record3.getInt("imageNum")==null?0:record3.getInt("imageNum");
|
|
|
+ int i = record3.getInt("imageNum");
|
|
|
List<Record> recordList = Db.use("connected").find("select * from v_webpacs_image where STUDYID=?",record3.getStr("studyid"));
|
|
|
if (recordList.size()<=i) {
|
|
|
continue;
|