瀏覽代碼

修改导出成绩时违纪次数计算bug

luoshi 4 年之前
父節點
當前提交
d74e45602a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      themis-business/src/main/resources/mapper/TEExamStudentMapper.xml

+ 1 - 1
themis-business/src/main/resources/mapper/TEExamStudentMapper.xml

@@ -322,7 +322,7 @@
 		t_oe_exam_record toer
 		where
 		toer.exam_student_id = tees.id) as examCount,
-		(select sum(toer.breach_status) from t_oe_exam_record toer
+		(select count(toer.id) from t_oe_exam_record toer
 		where toer.exam_student_id = tees.id and toer.breach_status = 0) as breachCount,
 		temp.objective_score as objectiveScore,
 		temp.id as recordId,