소스 검색

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 != ''">
         <if test="examId != null and examId != ''">
             and tees.exam_id = #{examId}
             and tees.exam_id = #{examId}
         </if>
         </if>
+        <if test="orgId != null and orgId != ''">
+            and tes.org_id = #{orgId}
+        </if>
         and exists(
         and exists(
         select
         select
         tee.id
         tee.id