|  | @@ -1639,7 +1639,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          studentPauseInfoDao.insert(studentPauseInfo);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        sysUserCashAccountService.appendCourseBalance(studentId, surplusCourseFee,"学生休学剩余课时转化为课程余额");
 | 
	
		
			
				|  |  | +        sysUserCashAccountService.appendCourseBalance(studentId, surplusCourseFee,PlatformCashAccountDetailTypeEnum.REFUNDS,"学生休学剩余课时转化为课程余额");
 | 
	
		
			
				|  |  |  		classStudentMapperByUserIdAndClassGroupId.setStatus(ClassGroupStudentStatusEnum.QUIT_SCHOOL);
 | 
	
		
			
				|  |  |  		classGroupStudentMapperDao.update(classStudentMapperByUserIdAndClassGroupId);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -1806,7 +1806,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  		if(!CollectionUtils.isEmpty(courseScheduleStudentPaymentList)){
 | 
	
		
			
				|  |  |  			courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPaymentList);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		sysUserCashAccountService.appendCourseBalance(studentRecoverInfo.getUserId(), surplusCourseFee.negate(), "学生复学扣除课程余额");
 | 
	
		
			
				|  |  | +		sysUserCashAccountService.appendCourseBalance(studentRecoverInfo.getUserId(), surplusCourseFee.negate(),PlatformCashAccountDetailTypeEnum.PAY_FEE, "学生复学扣除课程余额");
 | 
	
		
			
				|  |  |  		studentPauseInfo.setDelFlag(1);
 | 
	
		
			
				|  |  |  		studentPauseInfoDao.update(studentPauseInfo);
 | 
	
		
			
				|  |  |          vipGroup.setStatus(VipGroupStatusEnum.PROGRESS);
 | 
	
	
		
			
				|  | @@ -2439,7 +2439,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  				courseScheduleStudentPayment.setUpdateTime(now);
 | 
	
		
			
				|  |  |  				courseScheduleStudentPayments.add(courseScheduleStudentPayment);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -			sysUserCashAccountService.updateCourseBalance(classGroupStudent.getUserId(),sysUserCashAccount.getCourseBalance().subtract(surplusCourseTotalPrice),surplusCourseTotalPrice.negate(),"后台加课扣除课程余额");
 | 
	
		
			
				|  |  | +			sysUserCashAccountService.updateCourseBalance(classGroupStudent.getUserId(),sysUserCashAccount.getCourseBalance().subtract(surplusCourseTotalPrice),PlatformCashAccountDetailTypeEnum.PAY_FEE,surplusCourseTotalPrice.negate(),"后台加课扣除课程余额");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPayments);
 | 
	
		
			
				|  |  |  			imGroupMemberList.add(new ImGroupMember(classGroupStudent.getUserId().toString()));
 | 
	
	
		
			
				|  | @@ -2658,7 +2658,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  			courseScheduleStudentPaymentDao.batchInsert(courseScheduleStudentPayments);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			sysUserCashAccountService.updateCourseBalance(studentId,sysUserCashAccount.getCourseBalance().subtract(surplusCoursesPrice), surplusCoursesPrice.negate(), "后台添加学员扣除课程余额");
 | 
	
		
			
				|  |  | +			sysUserCashAccountService.updateCourseBalance(studentId,sysUserCashAccount.getCourseBalance().subtract(surplusCoursesPrice),PlatformCashAccountDetailTypeEnum.PAY_FEE, surplusCoursesPrice.negate(), "后台添加学员扣除课程余额");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			//创建班级学生关联记录
 | 
	
		
			
				|  |  |  			ClassGroupStudentMapper classGroupStudentMapper;
 |