|
|
|
@ -152,6 +152,10 @@ public class WechatServiceImpl implements IWechatService {
|
|
|
|
|
BeanUtils.copyProperties(req, currentDoctor);
|
|
|
|
|
currentDoctor.setDelFlag("0");
|
|
|
|
|
tDoctorMapper.updateTDoctor(currentDoctor);
|
|
|
|
|
TWechatUser queryUser = tWechatUserMapper.selectWechatUserByUserId(currentDoctor.getId());
|
|
|
|
|
if (Objects.nonNull(queryUser)) {
|
|
|
|
|
throw new ServiceException("该手机号已绑定其他微信账号!");
|
|
|
|
|
}
|
|
|
|
|
wechatUser.setUserId(currentDoctor.getId());
|
|
|
|
|
tDoctor.setId(currentDoctor.getId());
|
|
|
|
|
} else {
|
|
|
|
|