|
|
@@ -184,7 +184,8 @@ public class HisScriptSession {
|
|
|
}
|
|
|
DeferredResult<R<BusClinicEntity>> result = new DeferredResult<>(unit.toMillis(timeout));
|
|
|
if(!online){
|
|
|
- BusClinicEntity clinic = clinicService.recentClinicByPatientCode(hospitalId, patientCode);
|
|
|
+ BusPatientEntity patient = patientService.getOneByHospitalAndPatientCode(hospitalId, patientCode);
|
|
|
+ BusClinicEntity clinic = clinicService.getById(patient.getClinicId());
|
|
|
if(clinic==null){
|
|
|
result.setResult(R.fail(""));
|
|
|
}else {
|