فهرست منبع

mapper 修改

brealinxx 9 ماه پیش
والد
کامیت
0db05ab9e6
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/main/resources/mapper/teacher/TeacherFaceImportMapper.xml

+ 3 - 1
src/main/resources/mapper/teacher/TeacherFaceImportMapper.xml

@@ -66,8 +66,9 @@
         select t1.teacher_id
         from base_student_school_roll t
         left join base_class t1 on t.class_id = t1.id
+        where t.delete_mark = 0
         <if test="id != null">
-            where t.user_id = #{id}
+            and t.user_id = #{id}
         </if>
     </select>
 
@@ -75,6 +76,7 @@
         select t1.id
         from base_student_school_roll t
         left join base_class t1 on t.class_id = t1.id
+        where t.delete_mark = 0
         <if test="id != null">
             and t.user_id = #{id}
         </if>