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