|
@@ -26,6 +26,7 @@ import com.ym.mec.biz.dal.dto.*;
|
|
import com.ym.mec.biz.dal.enums.*;
|
|
import com.ym.mec.biz.dal.enums.*;
|
|
import com.ym.mec.biz.event.source.GroupEventSource;
|
|
import com.ym.mec.biz.event.source.GroupEventSource;
|
|
import com.ym.mec.biz.service.*;
|
|
import com.ym.mec.biz.service.*;
|
|
|
|
+import com.ym.mec.im.WebFeignService;
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
@@ -150,11 +151,12 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
private StudentCourseFeeDetailDao studentCourseFeeDetailDao;
|
|
private StudentCourseFeeDetailDao studentCourseFeeDetailDao;
|
|
@Autowired
|
|
@Autowired
|
|
private CourseScheduleDao courseScheduleDao;
|
|
private CourseScheduleDao courseScheduleDao;
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private StudentInstrumentService studentInstrumentService;
|
|
@Autowired
|
|
@Autowired
|
|
private GroupEventSource groupEventSource;
|
|
private GroupEventSource groupEventSource;
|
|
@Autowired
|
|
@Autowired
|
|
- private StudentInstrumentService studentInstrumentService;
|
|
|
|
|
|
+ private WebFeignService webFeignService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public BaseDAO<Long, StudentRegistration> getDAO() {
|
|
public BaseDAO<Long, StudentRegistration> getDAO() {
|
|
@@ -226,7 +228,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
public StudentFeeDetailDto queryFeeDetail(Integer studentId, String musicGroupId) {
|
|
public StudentFeeDetailDto queryFeeDetail(Integer studentId, String musicGroupId) {
|
|
StudentFeeDetailDto studentFeeDetailDto = new StudentFeeDetailDto();
|
|
StudentFeeDetailDto studentFeeDetailDto = new StudentFeeDetailDto();
|
|
List<MusicalListDetailDto> musicalList = studentPaymentOrderDetailService.getMusicalListDetail(musicGroupId, studentId);
|
|
List<MusicalListDetailDto> musicalList = studentPaymentOrderDetailService.getMusicalListDetail(musicGroupId, studentId);
|
|
- if (musicalList.size() <= 0) {
|
|
|
|
|
|
+ if(musicalList.size() <=0){
|
|
return studentFeeDetailDto;
|
|
return studentFeeDetailDto;
|
|
}
|
|
}
|
|
MusicalListDetailDto detailDto = musicalList.get(0);
|
|
MusicalListDetailDto detailDto = musicalList.get(0);
|
|
@@ -342,6 +344,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
studentRegistrationDao.insert(studentRegistration);
|
|
studentRegistrationDao.insert(studentRegistration);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ webFeignService.updateNickName(sysUser.getId(),studentRegistration.getName(),"STUDENT");
|
|
// 增加报名学生数
|
|
// 增加报名学生数
|
|
musicGroupSubjectPlanService.addApplyStudentNum(studentRegistration.getMusicGroupId(), studentRegistration.getSubjectId(), 1);
|
|
musicGroupSubjectPlanService.addApplyStudentNum(studentRegistration.getMusicGroupId(), studentRegistration.getSubjectId(), 1);
|
|
// 报名成功后,发送短信
|
|
// 报名成功后,发送短信
|
|
@@ -638,8 +641,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
studentDao.insert(new Student(userId, studentRegistration.getSubjectId().toString()));
|
|
studentDao.insert(new Student(userId, studentRegistration.getSubjectId().toString()));
|
|
//添加用户现金账户
|
|
//添加用户现金账户
|
|
sysUserCashAccountDao.insert(new SysUserCashAccount(userId, "CNY"));
|
|
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));
|
|
ImResult register = imFeignService.register(new ImUserModel(userId.toString(), sysUser.getUsername(), null));
|
|
sysUser.setImToken(register.getToken());
|
|
sysUser.setImToken(register.getToken());
|
|
teacherDao.updateUser(sysUser);
|
|
teacherDao.updateUser(sysUser);
|
|
@@ -677,6 +678,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
studentDao.update(student);
|
|
studentDao.update(student);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ webFeignService.updateNickName(userId,sysUser.getUsername(),"STUDENT");
|
|
}
|
|
}
|
|
MusicGroupStudentFee studentFeeDaoByUser = musicGroupStudentFeeDao.findByUser(userId, musicGroupId);
|
|
MusicGroupStudentFee studentFeeDaoByUser = musicGroupStudentFeeDao.findByUser(userId, musicGroupId);
|
|
if (studentFeeDaoByUser != null) {
|
|
if (studentFeeDaoByUser != null) {
|