zouxuan 2 years ago
parent
commit
ec0d48cb05

+ 6 - 6
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

@@ -4576,14 +4576,14 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
                             courseScheduleStudentPayments.add(courseScheduleStudentPayment);
                         }
                         userRoleMap.put(classGroupStudent.getUserId(), null);
-                        studentDao.updateStudentServiceTag(null, studentIdList, YesOrNoEnum.YES.getCode());
+                    }
+                    studentDao.updateStudentServiceTag(null, studentIdList, YesOrNoEnum.YES.getCode());
 
-                        courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPayments);
+                    courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPayments);
 
-                        imGroupService.create(classGroup.getId().toString(), null, classGroup.getName(), classGroup.getName(),
-                                vipGroup.getName(), null, null, vipGroup.getGroupType(), ImGroup.GroupTypeEnum.valueOf(vipGroup.getGroupType()));
-                        imGroupMemberService.join(classGroup.getId().toString(), userRoleMap);
-                    }
+                    imGroupService.create(classGroup.getId().toString(), null, classGroup.getName(), classGroup.getName(),
+                            vipGroup.getName(), null, null, vipGroup.getGroupType(), ImGroup.GroupTypeEnum.valueOf(vipGroup.getGroupType()));
+                    imGroupMemberService.join(classGroup.getId().toString(), userRoleMap);
                     imUserFriendService.refreshGroupImUserFriend(classGroup.getMusicGroupId(), classGroup.getGroupType());
                 }
                 vipGroupDao.update(vipGroup);