浏览代码

sql优化

wangliang 2 年之前
父节点
当前提交
2d843f3c1c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

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

@@ -1435,6 +1435,9 @@
         <if test="examId != null and examId != ''">
             and tees.exam_id = #{examId}
         </if>
+        <if test="orgId != null and orgId != ''">
+            and tes.org_id = #{orgId}
+        </if>
         and exists(
         select
         tee.id