|
@@ -386,6 +386,12 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
studentIds.add(studentVo.getUserId());
|
|
|
imUserFriendService.saveUserFriend(userId, studentIds, EImUserFriendSourceForm.TEACHER);
|
|
|
}
|
|
|
+ Long customerId = studentVo.getCustomerId();
|
|
|
+ if (userId.equals(customerId)) {
|
|
|
+ Set<Long> studentIds = new HashSet<>();
|
|
|
+ studentIds.add(studentVo.getUserId());
|
|
|
+ imUserFriendService.saveUserFriend(userId, studentIds, EImUserFriendSourceForm.TEACHER);
|
|
|
+ }
|
|
|
resMap.put("now", detail);
|
|
|
return HttpResponseResult.succeed(resMap);
|
|
|
}
|