zouxuan 5 年之前
父節點
當前提交
cf9aadc11b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      edu-user/edu-user-biz/src/main/resources/config/mybatis/StudentMapper.xml

+ 2 - 2
edu-user/edu-user-biz/src/main/resources/config/mybatis/StudentMapper.xml

@@ -107,7 +107,7 @@
 		LEFT JOIN sys_user su ON er.student_id_ = su.id_
 		WHERE su.del_flag_ = 0 AND su.lock_flag_ = 0
 		<if test="search != null and search != ''">
-			AND (stu.user_id_ = #{search} OR su.real_name_ LIKE CONCAT ('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
+			AND (su.id_ = #{search} OR su.real_name_ LIKE CONCAT ('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
 		</if>
 		<if test="organIds != null">
 			AND er.organ_id_ IN
@@ -121,7 +121,7 @@
 		LEFT JOIN sys_user su ON er.student_id_ = su.id_
 		WHERE su.del_flag_ = 0 AND su.lock_flag_ = 0
 		<if test="search != null and search != ''">
-			AND (stu.user_id_ = #{search} OR su.real_name_ LIKE CONCAT ('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
+			AND (su.id_ = #{search} OR su.real_name_ LIKE CONCAT ('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
 		</if>
 		<if test="organIds != null">
 			AND er.organ_id_ IN