Browse Source

查询老师教过的学生

周箭河 4 years ago
parent
commit
53a3cc4672
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/StudentVisitMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/StudentVisitMapper.xml

@@ -153,7 +153,7 @@
         LEFT JOIN sys_user s ON s.id_ = cssp.user_id_
         WHERE cs.actual_teacher_id_ = #{teacherId}
         <if test="student != null and student != ''">
-            AND (s.id_ = #{student} OR s.username_ LIKE CONCAT('%',#{student},'%'))
+            AND (s.phone_ LIKE CONCAT('%',#{student},'%') OR s.username_ LIKE CONCAT('%',#{student},'%'))
         </if>
         AND s.del_flag_ = 0
         GROUP BY s.id_
@@ -165,7 +165,7 @@
         LEFT JOIN sys_user s ON s.id_ = cssp.user_id_
         WHERE cs.actual_teacher_id_ = #{teacherId}
         <if test="student != null and student != ''">
-            AND (s.id_ = #{student} OR s.username_ LIKE CONCAT('%',#{student},'%'))
+            AND (s.phone_ LIKE CONCAT('%',#{student},'%') OR s.username_ LIKE CONCAT('%',#{student},'%'))
         </if>
         AND s.del_flag_ = 0
     </select>