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

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

@@ -49,7 +49,7 @@
 	<sql id="queryCondition">
 		<where>
 			<if test="search != null and search != ''">
-				AND (stu.user_id_ = #{search} OR su.real_name_ LIKE CONCAT (#{search}, '%'))
+				AND (stu.user_id_ = #{search} OR su.real_name_ LIKE CONCAT ('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
 			</if>
 		</where>
 	</sql>