|
@@ -28,6 +28,8 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
|
private CourseScheduleStudentPaymentService courseScheduleStudentPaymentService;
|
|
|
@Autowired
|
|
|
private ClassGroupService classGroupService;
|
|
|
+ @Autowired
|
|
|
+ private ClassGroupRelationService classGroupRelationService;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Long, ClassGroupStudentMapper> getDAO() {
|
|
@@ -135,6 +137,15 @@ public class ClassGroupStudentMapperServiceImpl extends BaseServiceImpl<Long, Cl
|
|
|
//3、学生加入新班级未开始课程
|
|
|
List<CourseSchedule> courseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupId);
|
|
|
|
|
|
+ //4、班级在合奏班、添加合奏课程
|
|
|
+ ClassGroupRelation classGroupRelation = classGroupRelationService.findClassGroupRelation(classGroupId);
|
|
|
+ if(classGroupRelation != null){
|
|
|
+ //合奏班增加人数
|
|
|
+ classGroupService.updateClassStudentNum(classGroupRelation.getClassGroupId().longValue(), userIdStrSet.size());
|
|
|
+ List<CourseSchedule> mixCourseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupRelation.getClassGroupId());
|
|
|
+ courseScheduleList.addAll(mixCourseScheduleList);
|
|
|
+ }
|
|
|
+
|
|
|
BigDecimal coursePrice = new BigDecimal("0");
|
|
|
|
|
|
List<CourseScheduleStudentPayment> courseScheduleStudentPayments = new ArrayList<>();
|