|
@@ -54,6 +54,10 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
@Autowired
|
|
|
private MusicGroupStudentFeeDao musicGroupStudentFeeDao;
|
|
|
@Autowired
|
|
|
+ private ClassGroupStudentMapperDao classGroupStudentMapperDao;
|
|
|
+ @Autowired
|
|
|
+ private ClassGroupRelationDao classGroupRelationDao;
|
|
|
+ @Autowired
|
|
|
private SysMessageService sysMessageService;
|
|
|
@Autowired
|
|
|
private MusicGroupPaymentCalenderDao musicGroupPaymentCalenderDao;
|
|
@@ -493,10 +497,10 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
throw new Exception("班级不存在");
|
|
|
}
|
|
|
//新增班级学生关系(单技班)
|
|
|
-// classGroupStudentMapperDao.insert(new ClassGroupStudentMapper(classGroupId, userId));
|
|
|
-// //新增班级学生关系(合奏班)
|
|
|
-// ClassGroupRelation classGroupRelation = classGroupRelationDao.findClassGroupRelation(classGroupId);
|
|
|
-// classGroupStudentMapperDao.insert(new ClassGroupStudentMapper(classGroupRelation.getClassGroupId(), userId));
|
|
|
+ classGroupStudentMapperDao.insert(new ClassGroupStudentMapper(classGroupId, userId));
|
|
|
+ //新增班级学生关系(合奏班)
|
|
|
+ ClassGroupRelation classGroupRelation = classGroupRelationDao.findClassGroupRelation(classGroupId);
|
|
|
+ classGroupStudentMapperDao.insert(new ClassGroupStudentMapper(classGroupRelation.getClassGroupId(), userId));
|
|
|
|
|
|
//获取当前月
|
|
|
Integer month = Integer.parseInt(DateUtil.getMonth(new Date()));
|