소스 검색

试读报到移动端班级统计

dzx 8 달 전
부모
커밋
bd833b0406
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/resources/mapper/student/StudentReportRecordMapper.xml

+ 2 - 2
src/main/resources/mapper/student/StudentReportRecordMapper.xml

@@ -257,7 +257,7 @@
             </if>
         </if>
         <if test="dto.teacherId != null">
-            and t5.teacher_id = #{dto.teacherId}
+            and (t5.teacher_id = #{dto.teacherId} or t5.id is null)
         </if>
         <if test="dto.gradeId != null">
             and t4.id = #{dto.gradeId}
@@ -329,7 +329,7 @@
             </if>
         </if>
         <if test="dto.teacherId != null">
-            and t5.teacher_id = #{dto.teacherId}
+            and (t5.teacher_id = #{dto.teacherId} or t5.id is null)
         </if>
         <if test="dto.gradeId != null">
             and t4.id = #{dto.gradeId}