|
|
@@ -217,11 +217,14 @@ public class CourseServiceImpl implements CourseService {
|
|
|
CourseSelectionKey courseSelectionKey = new CourseSelectionKey(userId, courseId);
|
|
|
CourseVO course = this.findCourseById(courseId);
|
|
|
if (course.getCoderId() != null) {
|
|
|
- JSONObject coderRes = coderService.chooseCourse(course.getInvitationCode());
|
|
|
+ JSONObject coderRes = coderService.chooseCourse(course.getInvitationCode(), -1);
|
|
|
}
|
|
|
// eval系统选课
|
|
|
if (course.getEvalId() != null) {
|
|
|
- JSONObject evalRes = evalService.chooseCourse(course.getInvitationCode());
|
|
|
+ JSONObject evalRes = evalService.chooseCourse(course.getInvitationCode(), -1);
|
|
|
+ }
|
|
|
+ if (course.getEaiId() != null) {
|
|
|
+ JSONObject eaiRes = eaiService.chooseCourse(course.getInvitationCode(), course.getEaiId());
|
|
|
}
|
|
|
CourseSelection courseSelection = new CourseSelection(courseSelectionKey);
|
|
|
courseSelection.setState(true);
|