@@ -203,8 +203,7 @@
where b.exam_id = #{examId}
and b.status = #{batchStatus}
and b.check_status = #{checkStatus}
- order by b.id
- <if test="batchId != null">#{checkOrder}</if>
+ order by b.id #{checkOrder}
</select>
<select id="getHistory"