Explorar o código

查询SQL错误修复

luoshi %!s(int64=4) %!d(string=hai) anos
pai
achega
c62d0776e5

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

@@ -861,7 +861,7 @@
                t.finish_time     as finishTime
         FROM t_oe_exam_record t
         where t.exam_student_id = #{examStudentId}
-          and t.breach_status != 1
+          and (t.breach_status is null or t.breach_status != 1)
     </select>
 
     <select id="findMaxObjectiveScore" resultType="com.qmth.themis.business.entity.TOeExamRecord">