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 e78d851..5e5c59a 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 @@ -120,6 +120,8 @@ public class SysLoginService } else { SysUser sysUser = userService.selectUserByUserName(username); LoginUser loginUser = new LoginUser(); + sysUser.setDoctorId(tDoctor.getId()); + sysUser.setHospitalId(tDoctor.getHospitalId()); loginUser.setUserId(sysUser.getUserId()); loginUser.setUser(sysUser); String token = userTokenService.createToken(loginUser);