|
@@ -3777,7 +3777,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
musicGroupStudentClassAdjustDao.insert(musicGroupStudentClassAdjust);
|
|
|
//没有需要审核的缴费项目
|
|
|
if (paymentCalenderDto.getStatus() != AUDITING) {
|
|
|
- spanGroupClassAdjustPass(masterClassGroupId,studentIds,courseIds,classGroupStudents,allLockCourseIds,paymentCalenderDto.getBatchNo());
|
|
|
+ List<Map<String,String>> classGroupStudents1 = (List<Map<String,String>>)JSON.parse(musicGroupStudentClassAdjust.getClassGroupStudents());
|
|
|
+ spanGroupClassAdjustPass(masterClassGroupId,studentIds,courseIds,classGroupStudents1,allLockCourseIds,paymentCalenderDto.getBatchNo());
|
|
|
}else {
|
|
|
// 冻结班级
|
|
|
classGroupDao.batchUpdateLockByClassGroupIds(classGroupIds, 1);
|
|
@@ -3786,17 +3787,17 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void spanGroupClassAdjustPass(Integer masterClassGroupId,List<Integer> studentIds,List<Long> courseIds,List<Map<Integer, String>> classGroupStudents,List<Long> allLockCourseIds,String batchNo){
|
|
|
+ public void spanGroupClassAdjustPass(Integer masterClassGroupId,List<Integer> studentIds,List<Long> courseIds,List<Map<String, String>> classGroupStudents,List<Long> allLockCourseIds,String batchNo){
|
|
|
//将学员加进班级未开始的课程,以及班级关联、加群
|
|
|
classGroupStudentMapperService.updateClassGroupStudents1(masterClassGroupId.longValue(),studentIds,allLockCourseIds,batchNo);
|
|
|
//删除学员课程
|
|
|
courseScheduleDao.deleteMusicGroupCourseSchedulesWithStudents(courseIds, studentIds);
|
|
|
//删除班级关联的学员
|
|
|
if (classGroupStudents != null && classGroupStudents.size() > 0) {
|
|
|
- for (Map<Integer, String> classGroupStudent : classGroupStudents) {
|
|
|
- Set<Integer> integers = classGroupStudent.keySet();
|
|
|
- for (Integer integer : integers) {
|
|
|
- classGroupStudentMapperDao.deleteByClassGroupIdAndStudents(integer, classGroupStudent.get(integer));
|
|
|
+ for (Map<String, String> classGroupStudent : classGroupStudents) {
|
|
|
+ Set<String> integers = classGroupStudent.keySet();
|
|
|
+ for (String integer : integers) {
|
|
|
+ classGroupStudentMapperDao.deleteByClassGroupIdAndStudents(Integer.parseInt(integer), classGroupStudent.get(integer));
|
|
|
}
|
|
|
}
|
|
|
}
|