|
@@ -141,13 +141,13 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
@Autowired
|
|
|
private CourseScheduleDao courseScheduleDao;
|
|
|
@Autowired
|
|
|
+ private StudentInstrumentService studentInstrumentService;
|
|
|
+ @Autowired
|
|
|
private OrganizationDao organizationDao;
|
|
|
|
|
|
@Autowired
|
|
|
private GroupEventSource groupEventSource;
|
|
|
@Autowired
|
|
|
- private StudentInstrumentService studentInstrumentService;
|
|
|
- @Autowired
|
|
|
private WebFeignService webFeignService;
|
|
|
|
|
|
@Override
|
|
@@ -328,6 +328,24 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
studentRegistration.setUpdateTime(date);
|
|
|
studentRegistration.setUserId(sysUser.getId());
|
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY);
|
|
|
+
|
|
|
+ Organization organization = organizationDao.get(studentRegistration.getOrganId());
|
|
|
+ if(organization.getGradeType().equals(GradeTypeEnum.SIX_PLUS)){
|
|
|
+ for (SixPlusGradeEnum value : SixPlusGradeEnum.values()) {
|
|
|
+ if(value.getCode().equals(studentRegistration.getCurrentGradeNum())){
|
|
|
+ studentRegistration.setCurrentGrade(value.getDesc());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ for (FivePlusGradeEnum value : FivePlusGradeEnum.values()) {
|
|
|
+ if(value.getCode().equals(studentRegistration.getCurrentGradeNum())){
|
|
|
+ studentRegistration.setCurrentGrade(value.getDesc());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (hasReg != null) {
|
|
|
studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.APPLY);
|
|
|
studentRegistration.setId(hasReg.getId());
|