|
@@ -3781,7 +3781,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
musicGroupStudentClassAdjustDao.insert(musicGroupStudentClassAdjust);
|
|
|
//没有需要审核的缴费项目
|
|
|
if (paymentCalenderDto.getStatus() != AUDITING) {
|
|
|
- List<Map<String,String>> classGroupStudents1 = (List<Map<String,String>>)JSON.parse(musicGroupStudentClassAdjust.getClassGroupStudents());
|
|
|
+ List<Map> classGroupStudents1 = JSON.parseArray(musicGroupStudentClassAdjust.getClassGroupStudents(),Map.class);
|
|
|
spanGroupClassAdjustPass(masterClassGroupId,studentIds,courseIds,classGroupStudents1,allLockCourseIds,paymentCalenderDto.getBatchNo(),masterTotalPrice);
|
|
|
return "操作成功:学员班级调整完成";
|
|
|
}else {
|
|
@@ -3798,20 +3798,20 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
public void spanGroupClassAdjustPass(Integer masterClassGroupId,
|
|
|
List<Integer> studentIds,
|
|
|
List<Long> courseIds,
|
|
|
- List<Map<String, String>> classGroupStudents,
|
|
|
+ List<Map> classGroupStudents,
|
|
|
List<Long> allLockCourseIds,
|
|
|
String batchNo,BigDecimal masterTotalPrice){
|
|
|
//删除班级关联的学员
|
|
|
List<Integer> classGroupIds = new ArrayList<>();
|
|
|
if (classGroupStudents != null && classGroupStudents.size() > 0) {
|
|
|
- for (Map<String, String> classGroupStudent : classGroupStudents) {
|
|
|
- Set<String> integers = classGroupStudent.keySet();
|
|
|
- for (String integer : integers) {
|
|
|
+ for (Map<Integer, String> classGroupStudent : classGroupStudents) {
|
|
|
+ Set<Integer> integers = classGroupStudent.keySet();
|
|
|
+ for (Integer integer : integers) {
|
|
|
List<Integer> collect = Arrays.asList(classGroupStudent.get(integer).split(",")).stream().map(e -> Integer.parseInt(e)).collect(Collectors.toList());
|
|
|
//学员退出群聊
|
|
|
- imGroupMemberService.quit(Long.parseLong(integer),collect);
|
|
|
- classGroupIds.add(Integer.parseInt(integer));
|
|
|
- classGroupStudentMapperDao.deleteByClassGroupIdAndStudents(Integer.parseInt(integer), classGroupStudent.get(integer));
|
|
|
+ imGroupMemberService.quit(integer.longValue(),collect);
|
|
|
+ classGroupIds.add(integer);
|
|
|
+ classGroupStudentMapperDao.deleteByClassGroupIdAndStudents(integer, classGroupStudent.get(integer));
|
|
|
}
|
|
|
}
|
|
|
}
|