|
@@ -35,7 +35,7 @@ public class ViewController extends Controller {
|
|
|
report.setExamId(exams2.getId());
|
|
|
report.setCreatedAt(new Date());
|
|
|
report.setReportResult(record.getStr("FITEM_RESULT_CODE").contains("阴")?"1":"2");
|
|
|
-// report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
|
|
|
+ report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
|
|
|
// report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
|
// report.setReviewDatetime(aaa(record.getStr("REPORTDATE")));
|
|
|
// report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
@@ -62,8 +62,10 @@ public class ViewController extends Controller {
|
|
|
if (name == null) {
|
|
|
return "1";
|
|
|
}
|
|
|
- Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM pacsonline.doctors where realname like ? and institution_id=73090001",name);
|
|
|
-
|
|
|
+ Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where realname like ? and institution_id=73090001",name);
|
|
|
+ if (doctors == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
return doctors.getId();
|
|
|
}
|
|
|
|