From d1744dc12dbe6c817495387b8c65f051d65be9ae Mon Sep 17 00:00:00 2001 From: heminjian502 Date: Wed, 10 Aug 2022 17:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E7=94=9F=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/framework/web/service/SysLoginService.java | 2 ++ .../java/com/ruoyi/system/service/impl/WechatServiceImpl.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java index 5e5c59a..953ef7a 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -187,6 +187,8 @@ public class SysLoginService tDoctor.setMedicalLicense(req.getMedicalLicense()); tDoctor.setUserId(sysUser.getUserId()); tDoctorMapper.insertTDoctor(tDoctor); + tDoctor.setIdentifier("10000000" + tDoctor.getId()); + tDoctorMapper.updateTDoctor(tDoctor); } LoginUser loginUser = new LoginUser(); sysUser.setDoctorId(tDoctor.getId()); diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java index b0e8674..03ec121 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java @@ -124,6 +124,8 @@ public class WechatServiceImpl implements IWechatService { tPatient.setCreateTime(new Date()); tPatient.setUpdateTime(new Date()); tPatientMapper.insertTPatient(tPatient); + tPatient.setIdentifier("10000000" + tPatient.getId()); + tPatientMapper.updateTPatient(tPatient); wechatUser.setUserId(tPatient.getId()); } // 绑定openid