|  | @@ -20,6 +20,7 @@ import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.annotation.Resource;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.service.*;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.slf4j.Logger;
 | 
	
		
			
				|  |  |  import org.slf4j.LoggerFactory;
 | 
	
	
		
			
				|  | @@ -98,23 +99,6 @@ import com.ym.mec.biz.dal.enums.PaymentStatusEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.PlatformCashAccountDetailTypeEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.StudentMusicGroupStatusEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.StudentRegistrationQueryInfo;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.ClassGroupService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.ClassGroupStudentMapperService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.ContractService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.CourseScheduleService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.CourseScheduleStudentPaymentService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.ImGroupMemberService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.MusicGroupSubjectPlanService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.SellOrderService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.StudentPaymentOrderDetailService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.StudentPaymentOrderService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.StudentRegistrationService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.SubjectService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.SysConfigService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.SysMessageService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.SysUserCashAccountDetailService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.SysUserCashAccountService;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.dal.BaseDAO;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.entity.ImResult;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.entity.ImUserModel;
 | 
	
	
		
			
				|  | @@ -202,6 +186,8 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |      private StudentCourseFeeDetailDao studentCourseFeeDetailDao;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private CourseScheduleDao courseScheduleDao;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private ImUserFriendService imUserFriendService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public BaseDAO<Long, StudentRegistration> getDAO() {
 | 
	
	
		
			
				|  | @@ -662,9 +648,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |          if (studentRegistration == null) {
 | 
	
		
			
				|  |  |              throw new BizException("参数校验失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        /*if(studentAddDto.getSignClassId() == null && studentAddDto.getMixClassId() == null){
 | 
	
		
			
				|  |  | -            throw new BizException("参数校验失败: 单技班或合奏班必填一项");
 | 
	
		
			
				|  |  | -        }*/
 | 
	
		
			
				|  |  |          Date date = new Date();
 | 
	
		
			
				|  |  |          String musicGroupId = studentRegistration.getMusicGroupId();
 | 
	
		
			
				|  |  |          
 | 
	
	
		
			
				|  | @@ -694,8 +677,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |                  studentDao.insert(new Student(userId, studentRegistration.getSubjectId().toString()));
 | 
	
		
			
				|  |  |                  //添加用户现金账户
 | 
	
		
			
				|  |  |                  sysUserCashAccountDao.insert(new SysUserCashAccount(userId, "CNY"));
 | 
	
		
			
				|  |  | -                //添加用户电子签章账户
 | 
	
		
			
				|  |  | -//                contractService.register(userId, sysUser.getRealName(), sysUser.getIdCardNo(), sysUser.getPhone());
 | 
	
		
			
				|  |  |                  ImResult register = imFeignService.register(new ImUserModel(userId.toString(), sysUser.getUsername(), null));
 | 
	
		
			
				|  |  |                  sysUser.setImToken(register.getToken());
 | 
	
		
			
				|  |  |                  teacherDao.updateUser(sysUser);
 | 
	
	
		
			
				|  | @@ -756,13 +737,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |                      userId, studentRegistration.getSubjectId(), studentAddDto.getCourseFee(),
 | 
	
		
			
				|  |  |                      null, studentAddDto.getTemporaryCourseFee(), null);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            /*if (musicGroup.getFeeType() != null && musicGroup.getFeeType() != MusicGroupPaymentCalender.FeeType.OFFLINE && musicGroupStudentFee.getTemporaryCourseFee().doubleValue() * 100 == 0) {
 | 
	
		
			
				|  |  | -                musicGroupStudentFee.setRemainNetworkClassTimes(musicGroupStudentFee.getRemainNetworkClassTimes() + 1);
 | 
	
		
			
				|  |  | -            }*/
 | 
	
		
			
				|  |  |              musicGroupStudentFeeDao.insert(musicGroupStudentFee);
 | 
	
		
			
				|  |  | -//            musicGroupStudentFeeDao.insert(new MusicGroupStudentFee(musicGroupId,
 | 
	
		
			
				|  |  | -//                    userId, studentRegistration.getSubjectId(), studentAddDto.getCourseFee(),
 | 
	
		
			
				|  |  | -//                    nextPaymentDate, studentAddDto.getTemporaryCourseFee(), paymentStatus));
 | 
	
		
			
				|  |  |              //当前学员是否以前存在过当前乐团
 | 
	
		
			
				|  |  |              if (phoneAndMusicGroupId != null) {
 | 
	
		
			
				|  |  |                  studentRegistration.setId(phoneAndMusicGroupId.getId());
 | 
	
	
		
			
				|  | @@ -771,7 +746,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |                  studentRegistrationDao.insertBasic(studentRegistration);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              studentRegistrationDao.updateCurrentClass(studentRegistration);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              return userId;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 |