Jelajahi Sumber

feat:首页异常导出

Joburgess 4 tahun lalu
induk
melakukan
c9c59b1078

+ 6 - 0
mec-biz/src/main/resources/config/mybatis/IndexBaseMonthDataMapper.xml

@@ -1258,6 +1258,9 @@
 			<if test="teacherId!=null">
 				AND sees.teacher_id_ = #{teacherId}
 			</if>
+			<if test="unDone!=null and unDone==1">
+				AND tm.teacher_id_ IS NULL
+			</if>
 			<if test="reminded!=null and reminded==0">
 				AND NOT EXISTS (SELECT id_ FROM teacher_remind WHERE teacher_id_=sees.teacher_id_ AND monday_ = sees.monday_ AND type_='SERVICE')
 			</if>
@@ -1284,6 +1287,9 @@
 		FROM
 		student_extracurricular_exercises_situation_ sees
 		LEFT JOIN teacher tea ON tea.id_=sees.teacher_id_
+		<if test="unDone!=null and unDone==1">
+			LEFT JOIN teacher_remind tm ON sees.monday_=tm.monday_ AND sees.teacher_id_=tm.teacher_id_
+		</if>
 		<include refid="queryTeacherServeInfoCondition" />
 		GROUP BY sees.monday_,sees.sunday_,sees.teacher_id_
 		<if test="unDone!=null">