|
@@ -17,19 +17,12 @@ import java.util.Map;
|
|
|
import java.util.Objects;
|
|
|
import java.util.Set;
|
|
|
import java.util.stream.Collectors;
|
|
|
-
|
|
|
import javax.annotation.Resource;
|
|
|
-
|
|
|
-import com.ym.mec.biz.event.source.GroupEventSource;
|
|
|
-import org.apache.commons.lang3.ArrayUtils;
|
|
|
import com.ym.mec.biz.dal.dao.*;
|
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
|
import com.ym.mec.biz.dal.enums.*;
|
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
|
-import com.ym.mec.biz.event.source.GroupEventSource;
|
|
|
import com.ym.mec.biz.service.*;
|
|
|
-import com.ym.mec.im.WebFeignService;
|
|
|
-import org.apache.commons.lang3.ArrayUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -39,13 +32,11 @@ import org.springframework.transaction.annotation.Isolation;
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
-
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.auth.api.entity.SysUserRole;
|
|
|
import com.ym.mec.auth.api.enums.CertificateTypeEnum;
|
|
|
-import com.ym.mec.biz.dal.dto.CourseFormDto;
|
|
|
import com.ym.mec.biz.dal.dto.StudentAddDto;
|
|
|
import com.ym.mec.biz.dal.dto.StudentApplyDetailDto;
|
|
|
import com.ym.mec.biz.dal.dto.StudentFeeDetailDto;
|
|
@@ -144,11 +135,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
private StudentInstrumentService studentInstrumentService;
|
|
|
@Autowired
|
|
|
private OrganizationDao organizationDao;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private GroupEventSource groupEventSource;
|
|
|
- @Autowired
|
|
|
- private WebFeignService webFeignService;
|
|
|
@Autowired
|
|
|
private StudentService studentService;
|
|
|
@Autowired
|
|
@@ -351,7 +337,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
imGroupDao.updateNickname(userId, studentRegistration.getName());
|
|
|
imGroupDao.updateUserFriendNickname(userId, studentRegistration.getName());
|
|
|
imFeignService.update(new ImUserModel(userId.toString(),studentRegistration.getName(),sysUser.getAvatar()));
|
|
|
-// webFeignService.updateNickName(sysUser.getId(),studentRegistration.getName(),"STUDENT",sysUser.getAvatar());
|
|
|
// 增加报名学生数
|
|
|
musicGroupSubjectPlanService.addApplyStudentNum(studentRegistration.getMusicGroupId(), studentRegistration.getSubjectId(), 1);
|
|
|
// 报名成功后,发送短信
|
|
@@ -692,7 +677,8 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
studentDao.update(student);
|
|
|
}
|
|
|
}
|
|
|
- webFeignService.updateNickName(userId,sysUser.getUsername(),"STUDENT",sysUser.getAvatar());
|
|
|
+ imGroupDao.updateNickname(userId,sysUser.getUsername());
|
|
|
+ imGroupDao.updateUserFriendNickname(userId,sysUser.getUsername());
|
|
|
}
|
|
|
MusicGroupStudentFee studentFeeDaoByUser = musicGroupStudentFeeDao.findByUser(userId, musicGroupId);
|
|
|
if (studentFeeDaoByUser != null) {
|
|
@@ -770,7 +756,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
student.setCurrentClass(studentRegistration.getCurrentClass());
|
|
|
studentDao.update(student);
|
|
|
//studentRegistrationDao.updateCurrentClass(studentRegistration);
|
|
|
-
|
|
|
+ imFeignService.update(new ImUserModel(userId.toString(),sysUser.getUsername(),sysUser.getAvatar()));
|
|
|
return userId;
|
|
|
}
|
|
|
}
|
|
@@ -815,7 +801,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
}
|
|
|
Boolean orderFlag = true;
|
|
|
//用户是否在主乐团
|
|
|
- StudentRegistration registration = studentRegistrationDao.getByPhoneAndMusicGroupId(newMusicGroupId, studentRegistration.getParentsPhone());
|
|
|
+ StudentRegistration registration = studentRegistrationDao.getStudentRegister(newMusicGroupId, studentRegistration.getUserId());
|
|
|
if (registration != null) {
|
|
|
if (registration.getMusicGroupStatus() == StudentMusicGroupStatusEnum.NORMAL) {
|
|
|
orderFlag = false;
|