|
@@ -49,6 +49,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("PHONE"));
|
|
|
patientInfos.update();
|
|
|
exams2.setExamStatus(9);
|
|
|
exams2.update();
|
|
@@ -74,11 +75,11 @@ public class DataTask implements ITask {
|
|
|
|
|
|
private String getDoctorIdByName(String name) {
|
|
|
if (name == null) {
|
|
|
- return "1";
|
|
|
+ return null;
|
|
|
}
|
|
|
Doctors doctors = Doctors.dao.use("zskk").findFirst("SELECT * FROM doctors where instr(?,realname) and institution_id=73090001",name);
|
|
|
if (doctors == null) {
|
|
|
- return "1";
|
|
|
+ return null;
|
|
|
}
|
|
|
return doctors.getId();
|
|
|
}
|