|
@@ -99,7 +99,8 @@ public class ExamStatisticServiceImpl implements ExamStatisticService {
|
|
|
}
|
|
|
|
|
|
StringBuffer sql = new StringBuffer();
|
|
|
- sql.append(" select es.exam_id,es.course_id,es.org_id,es.exam_student_id,sc.total_score,d.paper_score");
|
|
|
+ sql.append(" select es.exam_id,es.course_id,es.org_id,es.exam_student_id,");
|
|
|
+ sql.append(" es.finished,sc.total_score,d.paper_score");
|
|
|
sql.append(" from ec_oe_exam_student es");
|
|
|
sql.append(" left join ec_oe_exam_student_final_score sc on sc.exam_student_id = es.exam_student_id");
|
|
|
sql.append(" left join ec_oe_exam_record_data d on d.id = sc.exam_record_data_id");
|
|
@@ -118,11 +119,15 @@ public class ExamStatisticServiceImpl implements ExamStatisticService {
|
|
|
for (ExamStudentScoreInfo v : e.getValue()) {
|
|
|
allCount++;
|
|
|
|
|
|
- if (v.getTotalScore() == null) {
|
|
|
- // 无成绩,则未完成考试
|
|
|
+ if (v.getFinished() == null || !v.getFinished()) {
|
|
|
+ // 未完成考试
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
+ if (v.getTotalScore() == null) {
|
|
|
+ v.setTotalScore(0d);
|
|
|
+ }
|
|
|
+
|
|
|
finishCount++;
|
|
|
|
|
|
if (v.getTotalScore() >= (v.getPaperScore() * passScoreLine) / 100d) {
|