| 
														
															@@ -18,6 +18,7 @@ import com.ym.mec.common.entity.ImGroupMember; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.entity.ImGroupModel; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.entity.ImGroupModel; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.exception.BizException; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.exception.BizException; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.page.PageInfo; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.page.PageInfo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.common.service.IdGeneratorService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.service.impl.BaseServiceImpl; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.service.impl.BaseServiceImpl; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.im.ImFeignService; 
														 | 
														
														 | 
														
															 import com.ym.mec.im.ImFeignService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.thirdparty.message.MessageSenderPluginContext; 
														 | 
														
														 | 
														
															 import com.ym.mec.thirdparty.message.MessageSenderPluginContext; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -112,6 +113,8 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private TeacherService teacherService; 
														 | 
														
														 | 
														
															     private TeacherService teacherService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	@Autowired 
														 | 
														
														 | 
														
															 	@Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	private StudentPauseInfoDao studentPauseInfoDao; 
														 | 
														
														 | 
														
															 	private StudentPauseInfoDao studentPauseInfoDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	@Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	private IdGeneratorService idGeneratorService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	private static final Logger LOGGER = LoggerFactory 
														 | 
														
														 | 
														
															 	private static final Logger LOGGER = LoggerFactory 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			.getLogger(VipGroup.class); 
														 | 
														
														 | 
														
															 			.getLogger(VipGroup.class); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1034,7 +1037,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		StudentPaymentOrder studentPaymentOrder=new StudentPaymentOrder(); 
														 | 
														
														 | 
														
															 		StudentPaymentOrder studentPaymentOrder=new StudentPaymentOrder(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		studentPaymentOrder.setUserId(user.getId()); 
														 | 
														
														 | 
														
															 		studentPaymentOrder.setUserId(user.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         studentPaymentOrder.setGroupType(GroupType.VIP); 
														 | 
														
														 | 
														
															         studentPaymentOrder.setGroupType(GroupType.VIP); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		String orderNo=StringUtils.join(new String[]{user.getId().toString(),String.valueOf(System.currentTimeMillis())}); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		String orderNo=idGeneratorService.generatorId("payment") + ""; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		studentPaymentOrder.setOrderNo(orderNo); 
														 | 
														
														 | 
														
															 		studentPaymentOrder.setOrderNo(orderNo); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		studentPaymentOrder.setStatus(DealStatusEnum.ING); 
														 | 
														
														 | 
														
															 		studentPaymentOrder.setStatus(DealStatusEnum.ING); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		studentPaymentOrder.setType(OrderTypeEnum.SMALL_CLASS_TO_BUY); 
														 | 
														
														 | 
														
															 		studentPaymentOrder.setType(OrderTypeEnum.SMALL_CLASS_TO_BUY); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1391,8 +1394,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         studentPauseInfoDao.insert(studentPauseInfo); 
														 | 
														
														 | 
														
															         studentPauseInfoDao.insert(studentPauseInfo); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        courseScheduleTeacherSalaryService.updateVipGroupCourseTeacherSalary(vipGroupId.intValue(),-1,vipGroup.getStatus()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         sysUserCashAccountService.appendCourseBalance(studentId, surplusCourseFee); 
														 | 
														
														 | 
														
															         sysUserCashAccountService.appendCourseBalance(studentId, surplusCourseFee); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		classStudentMapperByUserIdAndClassGroupId.setStatus(ClassGroupStudentStatusEnum.QUIT_SCHOOL); 
														 | 
														
														 | 
														
															 		classStudentMapperByUserIdAndClassGroupId.setStatus(ClassGroupStudentStatusEnum.QUIT_SCHOOL); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		classGroupStudentMapperDao.update(classStudentMapperByUserIdAndClassGroupId); 
														 | 
														
														 | 
														
															 		classGroupStudentMapperDao.update(classStudentMapperByUserIdAndClassGroupId); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1412,6 +1413,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			vipGroupDao.update(vipGroup); 
														 | 
														
														 | 
														
															 			vipGroupDao.update(vipGroup); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		courseScheduleTeacherSalaryService.updateVipGroupCourseTeacherSalary(vipGroupId.intValue(),-1,vipGroup.getStatus()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Override 
														 | 
														
														 | 
														
															     @Override 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1457,7 +1459,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			throw new BizException("未找到休学信息"); 
														 | 
														
														 | 
														
															 			throw new BizException("未找到休学信息"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		Map<String, Object> courseInfo = JSON.parseObject(studentPauseInfo.getCoursesJson(), Map.class); 
														 | 
														
														 | 
														
															 		Map<String, Object> courseInfo = JSON.parseObject(studentPauseInfo.getCoursesJson(), Map.class); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        Integer[] teachModeSequence=JSON.parseArray(courseInfo.get("teaChModeSequence").toString(), Integer.class).stream().toArray(Integer[]::new); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		List<BigDecimal> coursePrices = (List<BigDecimal>) courseInfo.get("coursePriceInfo"); 
														 | 
														
														 | 
														
															 		List<BigDecimal> coursePrices = (List<BigDecimal>) courseInfo.get("coursePriceInfo"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		coursePrices.sort(Comparator.naturalOrder()); 
														 | 
														
														 | 
														
															 		coursePrices.sort(Comparator.naturalOrder()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		Collections.reverse(coursePrices); 
														 | 
														
														 | 
														
															 		Collections.reverse(coursePrices); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1527,6 +1528,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		studentPauseInfoDao.update(studentPauseInfo); 
														 | 
														
														 | 
														
															 		studentPauseInfoDao.update(studentPauseInfo); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         vipGroup.setStatus(VipGroupStatusEnum.PROGRESS); 
														 | 
														
														 | 
														
															         vipGroup.setStatus(VipGroupStatusEnum.PROGRESS); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         vipGroupDao.update(vipGroup); 
														 | 
														
														 | 
														
															         vipGroupDao.update(vipGroup); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		courseScheduleTeacherSalaryService.updateVipGroupCourseTeacherSalary(vipGroup.getId().intValue(),1,vipGroup.getStatus()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Override 
														 | 
														
														 | 
														
															     @Override 
														 |