瀏覽代碼

添加手机号

半月无霜 4 年之前
父節點
當前提交
1a39b84408
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ymall/src/main/java/com/liangjian11/ymall/service/impl/DoctorServiceImpl.java

+ 1 - 0
ymall/src/main/java/com/liangjian11/ymall/service/impl/DoctorServiceImpl.java

@@ -364,6 +364,7 @@ public class DoctorServiceImpl extends ServiceImpl<DoctorMapper, Doctor> impleme
         doctor.setPhone(enPhone);
         doctorMapper.updateOne(doctor);
   
+        userAccount.setMobile(enPhone);
         userRoleService.addUserRole(userAccount, userAccount.getNickname(),
                 userAccount.getHeadimg(), doctorList.get(0).getId(), 1, 1);
       }