|
|
@@ -236,15 +236,15 @@ public class ExamServiceImpl implements ExamService {
|
|
|
|
|
|
@Override
|
|
|
public JSONArray findEvalStudentExamsByCourseId(int courseId) {
|
|
|
- return evalService.findTeacherExamsByCourseId(courseId).getJSONArray("result");
|
|
|
+ return evalService.findStudentExamsByCourseId(courseId).getJSONArray("result");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public JSONArray findEvalTeacherExamsByCourseId(int courseId) {
|
|
|
- return evalService.findStudentExamsByCourseId(courseId).getJSONArray("result");
|
|
|
+ return evalService.findTeacherExamsByCourseId(courseId).getJSONArray("result");
|
|
|
}
|
|
|
|
|
|
- // private
|
|
|
+
|
|
|
private JSONObject groupCoderExamsByCourse(JSONArray exams) {
|
|
|
JSONObject groupedExams = new JSONObject();
|
|
|
JSONObject result = new JSONObject();
|