|
@@ -26,7 +26,7 @@ public class DataTask implements ITask {
|
|
|
List<Exams> exams = Exams.dao.use("zskk").find("SELECT * FROM pacsonline.exams where exam_status=3 and institution_id=46400001 order by createdAt desc limit 30");
|
|
|
for (Exams exams2 : exams) {
|
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
|
- Record record = Db.use("connected").findFirst("select * from reportinfo where ACCESSIONNUMBER=?",exams2.getAccessionNum());
|
|
|
+ Record record = Db.use("connected").findFirst("select * from hhris.view_reportinfo where ACCESSIONNUMBER=?",exams2.getAccessionNum());
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -36,8 +36,8 @@ public class DataTask implements ITask {
|
|
|
if (record.getStr("IMPRESSION") == null && record.getStr("DESCRIPTION") == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- report.setImpression(new String(record.getStr("DESCRIPTION").getBytes("windows-1252"),"GBK"));
|
|
|
- report.setDescription(new String(record.getStr("IMPRESSION").getBytes("windows-1252"),"GBK"));
|
|
|
+ report.setImpression(new String(record.getStr("IMPRESSION").getBytes("windows-1252"),"GBK"));
|
|
|
+ report.setDescription(new String(record.getStr("DESCRIPTION").getBytes("windows-1252"),"GBK"));
|
|
|
report.setExamId(exams2.getId());
|
|
|
report.setCreatedAt(new Date());
|
|
|
report.setReportDoctorId(getDoctorIdByName(new String(record.getStr("REPORTDOCTOR").getBytes("windows-1252"),"GBK")));
|