|
@@ -23,9 +23,12 @@ public class DataTask implements ITask {
|
|
|
public void run() {
|
|
|
// TODO Auto-generated method stub
|
|
|
try {
|
|
|
- List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=44000003 order by createdAt desc limit 20");
|
|
|
+ List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=44000003 order by createdAt desc limit 30");
|
|
|
for (Exams exams2 : exams) {
|
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
|
+ if (exams2.getAccessionNum() == null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
Record record = Db.use("connected").findFirst("select * from yxjK where ACCESSIONNUMBER=?",exams2.getAccessionNum());
|
|
|
if (record == null) {
|
|
|
continue;
|