|
@@ -493,14 +493,14 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
|
|
|
baseMapper.insert(teacher);
|
|
|
|
|
|
// 机构老师与学生互加好友关系
|
|
|
- if (Optional.ofNullable(teacher.getTenantId()).orElse(-1L) > 0) {
|
|
|
- // 自动与机构老师成为好友
|
|
|
- Set<Long> collect = studentService.lambdaQuery()
|
|
|
- .eq(Student::getTenantId, teacher.getTenantId()).list().stream()
|
|
|
- .map(Student::getUserId).collect(Collectors.toSet());
|
|
|
-
|
|
|
- imUserFriendService.saveUserFriend(teacher.getUserId(), collect);
|
|
|
- }
|
|
|
+// if (Optional.ofNullable(teacher.getTenantId()).orElse(-1L) > 0) {
|
|
|
+// // 自动与机构老师成为好友
|
|
|
+// Set<Long> collect = studentService.lambdaQuery()
|
|
|
+// .eq(Student::getTenantId, teacher.getTenantId()).list().stream()
|
|
|
+// .map(Student::getUserId).collect(Collectors.toSet());
|
|
|
+//
|
|
|
+// imUserFriendService.saveUserFriend(teacher.getUserId(), collect);
|
|
|
+// }
|
|
|
|
|
|
//插入老师账户表
|
|
|
UserAccount oldAcc = userAccountService.getById(teacherSubmitReq.getUserId());
|