|
@@ -154,13 +154,13 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
classGroup.setCreateTime(date);
|
|
|
classGroup.setUpdateTime(date);
|
|
|
classGroup.setType(ClassGroupTypeEnum.NORMAL);
|
|
|
-
|
|
|
+ classGroup.setGroupType(groupType);
|
|
|
classGroup.setExpectStudentNum(userIdStrSet.size());
|
|
|
classGroup.setStudentNum(userIdStrSet.size());
|
|
|
insert(classGroup);
|
|
|
|
|
|
//2、插入班级学生关联关系
|
|
|
- List<Integer> userIdList = new ArrayList<>();
|
|
|
+ List<Integer> userIdList = new ArrayList<>();
|
|
|
List<ClassGroupStudentMapper> classGroupStudentList = new ArrayList<>();
|
|
|
for (String userId : userIdStrSet) {
|
|
|
ClassGroupStudentMapper classGroupStudentMapper = new ClassGroupStudentMapper();
|
|
@@ -183,7 +183,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
classGroupStudentMapperDao.classGroupStudentsInsert(classGroupStudentList);
|
|
|
|
|
|
//加入IM群组
|
|
|
- addImGroup(classGroup,userIdList);
|
|
|
+ addImGroup(classGroup, userIdList);
|
|
|
return classGroup;
|
|
|
}
|
|
|
|
|
@@ -249,7 +249,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
classGroupRelationService.classGroupRelationsInsert(classGroupRelationList);
|
|
|
|
|
|
//加入IM群组
|
|
|
- addImGroup(classGroup,userIdList);
|
|
|
+ addImGroup(classGroup, userIdList);
|
|
|
|
|
|
return classGroup;
|
|
|
}
|
|
@@ -353,7 +353,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
userIdList.add(classGroupTeacherMapper.getUserId());
|
|
|
|
|
|
//加入Im群组
|
|
|
- addImGroup(highClassGroup,userIdList);
|
|
|
+ addImGroup(highClassGroup, userIdList);
|
|
|
}
|
|
|
return highClassGroupList;
|
|
|
}
|
|
@@ -461,6 +461,11 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
List<ClassGroupTeachersDto> classGroupAndTeachers = getClassGroupAndTeachers(musicGroupId, "NORMAL,MIX,HIGH", classGroupId);
|
|
|
BigDecimal zeroSalary = new BigDecimal(0);
|
|
|
MusicGroup musicGroup = musicGroupDao.get(musicGroupId);
|
|
|
+ if (type != null) {
|
|
|
+ musicGroup.setSettlementType(type);
|
|
|
+ musicGroupDao.update(musicGroup);
|
|
|
+ }
|
|
|
+
|
|
|
for (ClassGroupTeachersDto classGroupAndTeacher : classGroupAndTeachers) {
|
|
|
//班级的教师列表
|
|
|
List<ClassGroupTeacherMapper> classGroupTeacherMapperList = classGroupAndTeacher.getClassGroupTeacherMapperList();
|
|
@@ -1108,6 +1113,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
courseScheduleStudentPayment.setCreateTime(date);
|
|
|
courseScheduleStudentPayment.setUpdateTime(date);
|
|
|
courseScheduleStudentPayment.setClassGroupId(noStartCourse.getClassGroupId());
|
|
|
+ courseScheduleStudentPayment.setMusicGroupId(classGroup.getMusicGroupId());
|
|
|
+ courseScheduleStudentPayment.setGroupType(classGroup.getGroupType());
|
|
|
courseScheduleStudentPaymentList.add(courseScheduleStudentPayment);
|
|
|
}
|
|
|
}
|
|
@@ -1312,6 +1319,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
for (CourseSchedule noStartCourse : noStartCourses) {
|
|
|
for (StudentRegistration studentRegistration : studentList) {
|
|
|
CourseScheduleStudentPayment courseScheduleStudentPayment = new CourseScheduleStudentPayment();
|
|
|
+ courseScheduleStudentPayment.setGroupType(classGroup.getGroupType());
|
|
|
+ courseScheduleStudentPayment.setMusicGroupId(classGroup.getMusicGroupId());
|
|
|
courseScheduleStudentPayment.setCourseScheduleId(noStartCourse.getId());
|
|
|
courseScheduleStudentPayment.setUserId(studentRegistration.getUserId());
|
|
|
courseScheduleStudentPayment.setExpectPrice(expectPrice);
|