|
@@ -23,8 +23,8 @@ public class DataTask implements ITask {
|
|
|
List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=0450002 order by createdAt desc limit 30");
|
|
|
for (Exams exams2 : exams) {
|
|
|
try {
|
|
|
- Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
|
- Record record = Db.use("connected").findFirst("select * from (SELECT * FROM zlhis.zskk_reportinfo zs INNER JOIN zlhis.zskk_reportinfo_1 zskk ON zs.ACCESSIONNUMBER = zskk.ACCESSIONNUMBER order by REPORTDATE desc ) where ACCESSIONNUMBER=?",studies.getStudyuid());
|
|
|
+// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
|
+ Record record = Db.use("connected").findFirst("select * from (SELECT * FROM zlhis.zskk_reportinfo zs INNER JOIN zlhis.zskk_reportinfo_1 zskk ON zs.ACCESSIONNUMBER = zskk.ACCESSIONNUMBER order by REPORTDATE desc ) where ACCESSIONNUMBER=?",exams2.getAccessionNum());
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -46,7 +46,7 @@ public class DataTask implements ITask {
|
|
|
report.save();
|
|
|
PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
|
|
|
patientInfos.setName(record.getStr("PATIENTNAME"));
|
|
|
- patientInfos.setPhone(record.getStr("telephone"));
|
|
|
+ patientInfos.setPhone(record.getStr("PHONE"));
|
|
|
patientInfos.setCardNum(record.getStr("IDCARD"));
|
|
|
patientInfos.update();
|
|
|
exams2.setExamStatus(9);
|