|
@@ -25,14 +25,14 @@ public class DataTask implements ITask {
|
|
|
List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=01000001 order by createdAt desc limit 50");
|
|
|
for (Exams exams2 : exams) {
|
|
|
Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
|
- Record record = Db.use("connected").findFirst("select * from reportinfo where studyuid=?",studies.getStudyuid());
|
|
|
+ Record record = Db.use("connected").findFirst("select * from reportinfo where accessionNumber=?",studies.getAccessionNum());
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
|
Report report = new Report().use("zskk");
|
|
|
report.setId(creatId());
|
|
|
report.setReportDatetime(parseStringToDate(record.getStr("reportdate")));
|
|
|
- if (record.getStr("IMPRESSION") == null && record.getStr("DESCRIPTION") == null) {
|
|
|
+ if (record.getStr("impression") == null && record.getStr("description") == null) {
|
|
|
continue;
|
|
|
}
|
|
|
report.setImpression(record.getStr("impression"));
|
|
@@ -70,7 +70,7 @@ public class DataTask implements ITask {
|
|
|
|
|
|
private String creatId() {
|
|
|
UUID id=UUID.randomUUID();
|
|
|
- String[] idd = id.toString().split("-");
|
|
|
+ String[] idd =id.toString().split("-");
|
|
|
return idd[0]+idd[1]+idd[2];
|
|
|
}
|
|
|
|