医生账号登录接口

master
heminjian502 2 years ago
parent c6b9c36783
commit 6da263517f

@ -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);

Loading…
Cancel
Save