wangliang 4 лет назад
Родитель
Сommit
ae7b6a27fb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      themis-business/src/main/resources/mapper/TEExamReexamMapper.xml

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

@@ -13,7 +13,7 @@
             tees.course_code as courseCode,
             tees.course_name as courseName,
             tees.exam_id as examId,
-            tee.exam_count - tees.already_exam_count as examCount,
+            if(tee.exam_count - tees.already_exam_count <![CDATA[ < ]]> 0,0,tee.exam_count - tees.already_exam_count) as examCount,
             (select count(1) from t_oe_exam_record toer where (toer.status <![CDATA[ <> ]]> 'FINISHED' and toer.status <![CDATA[ <> ]]> 'PERSISTED') and toer.exam_student_id = tees.id) as statusCount,
             (select count(1) from t_e_exam_reexam teer where teer.exam_student_id = tees.id and teer.status = 1) as reexamCount
         from