From 7c6b3993c00d699f33354fd183e922f068945e5e Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Wed, 10 Aug 2022 15:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=82=A3=E8=80=85=E7=BC=96?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/web/controller/api/AppController.java | 3 +++ 1 file changed, 3 insertions(+) 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());