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