添加患者同时加预约记录

master
zhangcl 2 years ago
parent b794c777bb
commit 060b6addea

@ -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();
} }

Loading…
Cancel
Save