医生账号登录接口

master
heminjian502 2 years ago
parent fb636fc1e1
commit c6b9c36783

@ -94,6 +94,10 @@ public class SysUser extends BaseEntity
/** 角色ID */
private Long roleId;
private Long doctorId;
private Long hospitalId;
public SysUser()
{
@ -314,6 +318,22 @@ public class SysUser extends BaseEntity
this.roleId = roleId;
}
public Long getDoctorId() {
return doctorId;
}
public void setDoctorId(Long doctorId) {
this.doctorId = doctorId;
}
public Long getHospitalId() {
return hospitalId;
}
public void setHospitalId(Long hospitalId) {
this.hospitalId = hospitalId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -187,6 +187,8 @@ public class SysLoginService
tDoctorMapper.insertTDoctor(tDoctor);
}
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