|  | @@ -327,9 +327,9 @@ public class GroupClassServiceImpl implements GroupClassService {
 | 
											
												
													
														|  |                  cloudTeacherOrder.setRemark("退还活动关联会员时长");
 |  |                  cloudTeacherOrder.setRemark("退还活动关联会员时长");
 | 
											
												
													
														|  |                  cloudTeacherOrderDao.update(cloudTeacherOrder);
 |  |                  cloudTeacherOrderDao.update(cloudTeacherOrder);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -            if(activityUserMapper.getGiveVipFlag() == 2 || activityUserMapper.getVipFlag() == 2){
 |  | 
 | 
											
												
													
														|  | 
 |  | +            if((masterGroup && activityUserMapper.getGiveVipFlag() == 2) || (!masterGroup && activityUserMapper.getVipFlag() == 2)){
 | 
											
												
													
														|  |                  Long giveVipGroupId = activityUserMapper.getGiveVipGroupId();
 |  |                  Long giveVipGroupId = activityUserMapper.getGiveVipGroupId();
 | 
											
												
													
														|  | -                if(activityUserMapper.getVipFlag() == 2){
 |  | 
 | 
											
												
													
														|  | 
 |  | +                if(!masterGroup){
 | 
											
												
													
														|  |                      giveVipGroupId = activityUserMapper.getVipGroupId();
 |  |                      giveVipGroupId = activityUserMapper.getVipGroupId();
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                  VipGroup giveVipGroup = vipGroupDao.get(giveVipGroupId);
 |  |                  VipGroup giveVipGroup = vipGroupDao.get(giveVipGroupId);
 | 
											
										
											
												
													
														|  | @@ -373,9 +373,9 @@ public class GroupClassServiceImpl implements GroupClassService {
 | 
											
												
													
														|  |                  //学员退出班级群
 |  |                  //学员退出班级群
 | 
											
												
													
														|  |                  imGroupMemberService.quit(giveClassGroup.getId().longValue(), studentId);
 |  |                  imGroupMemberService.quit(giveClassGroup.getId().longValue(), studentId);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -            if(activityUserMapper.getGivePracticeFlag() == 2 || activityUserMapper.getPracticeFlag() == 2){
 |  | 
 | 
											
												
													
														|  | 
 |  | +            if((masterGroup && activityUserMapper.getGivePracticeFlag() == 2) || (!masterGroup && activityUserMapper.getPracticeFlag() == 2)){
 | 
											
												
													
														|  |                  Long givePracticeGroupId = activityUserMapper.getGivePracticeGroupId();
 |  |                  Long givePracticeGroupId = activityUserMapper.getGivePracticeGroupId();
 | 
											
												
													
														|  | -                if(activityUserMapper.getPracticeFlag() == 2){
 |  | 
 | 
											
												
													
														|  | 
 |  | +                if(!masterGroup){
 | 
											
												
													
														|  |                      givePracticeGroupId = activityUserMapper.getPracticeGroupId();
 |  |                      givePracticeGroupId = activityUserMapper.getPracticeGroupId();
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                  PracticeGroup practiceGroup = practiceGroupService.get(givePracticeGroupId);
 |  |                  PracticeGroup practiceGroup = practiceGroupService.get(givePracticeGroupId);
 |