|
@@ -3,6 +3,9 @@ package com.ym.mec.biz.service.impl;
|
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
|
import com.ym.mec.biz.dal.enums.ClassGroupStudentStatusEnum;
|
|
|
import com.ym.mec.biz.service.*;
|
|
|
+import com.ym.mec.common.entity.ImGroupMember;
|
|
|
+import com.ym.mec.common.entity.ImGroupModel;
|
|
|
+import com.ym.mec.im.ImFeignService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -30,6 +33,8 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
|
private ClassGroupService classGroupService;
|
|
|
@Autowired
|
|
|
private ClassGroupRelationService classGroupRelationService;
|
|
|
+ @Autowired
|
|
|
+ private ImFeignService imFeignService;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Long, ClassGroupStudentMapper> getDAO() {
|
|
@@ -61,6 +66,14 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
|
//3、删除学生对应班级的课程
|
|
|
List<CourseSchedule> courseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupId);
|
|
|
courseScheduleStudentPaymentService.deleteStudentCourseSchedule(userId, courseScheduleList);
|
|
|
+
|
|
|
+ //4、学生退出班级群组
|
|
|
+ ClassGroup classGroup = classGroupService.get(classGroupId);
|
|
|
+
|
|
|
+ ImGroupMember[] imGroupMembers = {new ImGroupMember(userId.toString())};
|
|
|
+ // 推出群组
|
|
|
+ imFeignService.groupQuit(new ImGroupModel(classGroup.getId().toString(), imGroupMembers, classGroup.getName()));
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|