|
|
@ -211,6 +211,21 @@ public class AppController extends BaseController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
itPatientHospitalDoctorService.insertTPatientHospitalDoctor(tPatientHospitalDoctor);
|
|
|
|
itPatientHospitalDoctorService.insertTPatientHospitalDoctor(tPatientHospitalDoctor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
|
|
|
|
tRecord.setHospitalId(appPatientReq.getHospitalId());
|
|
|
|
|
|
|
|
tRecord.setPatientId(tPatient.getId());
|
|
|
|
|
|
|
|
tRecord.setDoctorId(appPatientReq.getDoctorId());
|
|
|
|
|
|
|
|
tRecord.setStatus("0");
|
|
|
|
|
|
|
|
tRecord.setCreateBy(getUsername());
|
|
|
|
|
|
|
|
tRecordService.insertTRecord(tRecord);
|
|
|
|
|
|
|
|
List<TPatientHospitalDoctor> tPHDs = itPatientHospitalDoctorService.selectTPatientHospitalDoctorList(tPatientHospitalDoctor);
|
|
|
|
|
|
|
|
if (tPHDs.isEmpty())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
itPatientHospitalDoctorService.insertTPatientHospitalDoctor(tPatientHospitalDoctor);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
return AjaxResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|