Ver Fonte

查询老师教过的学生

周箭河 há 4 anos atrás
pai
commit
53a3cc4672

+ 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>