@@ -695,7 +695,7 @@
</select>
<select id="getUsers" resultType="com.ym.mec.biz.dal.dto.BasicUserDto">
- SELECT username_,id_ user_id_,phone_ FROM sys_user
+ SELECT username_ name ,id_ userId,phone_ phone FROM sys_user
WHERE id_ = #{search} OR username_ LIKE CONCAT('%',#{search},'%') OR phone_ LIKE CONCAT('%',#{search},'%')
</mapper>
@@ -109,6 +109,9 @@
<if test="student != null and student != ''">
AND (s.id_ = #{student} OR s.username_ LIKE CONCAT('%',#{student},'%'))
</if>
+ <if test="teacherId !=null">
+ AND sv.teacher_id_ = #{teacherId}
+ </if>
<if test="organId != null and organId != ''">
AND FIND_IN_SET(sv.organ_id_,#{organId})