yonge 6 days ago
parent
commit
b320d9508a

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TeacherServiceImpl.java

@@ -1646,7 +1646,7 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
         teacher.setLockFlag(UserLockFlag.NORMAL.equals(teacher.getLockFlag()) ? UserLockFlag.LOCKED : UserLockFlag.NORMAL);
 
         if(teacher.getLockFlag() == UserLockFlag.LOCKED){
-        	userFeignService.exitByPhone(ClientEnum.TEACHER.getCode().toLowerCase(), sysUser.getPhone());
+        	userFeignService.exitByPhone(ClientEnum.TEACHER.getCode().toLowerCase(), baseMapper.getBasicUserInfo(teacherId).getPhone());
         }
         
         this.updateById(teacher);