处理患者编号

master
chenfei 2 years ago
parent 95e82a19e3
commit 7c6b3993c0

@ -172,6 +172,9 @@ public class AppController extends BaseController
TPatient tPatient = new TPatient(); TPatient tPatient = new TPatient();
BeanUtils.copyProperties(appPatientReq, tPatient); BeanUtils.copyProperties(appPatientReq, tPatient);
tPatientService.insertTPatient(tPatient); tPatientService.insertTPatient(tPatient);
Long identifier = 10000000L + tPatient.getId();
tPatient.setIdentifier(String.valueOf(identifier));
tPatientService.updateTPatient(tPatient);
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
tPatientHospitalDoctor.setHospitalId(appPatientReq.getHospitalId()); tPatientHospitalDoctor.setHospitalId(appPatientReq.getHospitalId());
tPatientHospitalDoctor.setDoctorId(appPatientReq.getDoctorId()); tPatientHospitalDoctor.setDoctorId(appPatientReq.getDoctorId());

Loading…
Cancel
Save