diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index ea02975..3d3d09b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -172,6 +172,9 @@ public class AppController extends BaseController TPatient tPatient = new TPatient(); BeanUtils.copyProperties(appPatientReq, tPatient); tPatientService.insertTPatient(tPatient); + Long identifier = 10000000L + tPatient.getId(); + tPatient.setIdentifier(String.valueOf(identifier)); + tPatientService.updateTPatient(tPatient); TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); tPatientHospitalDoctor.setHospitalId(appPatientReq.getHospitalId()); tPatientHospitalDoctor.setDoctorId(appPatientReq.getDoctorId());