yonge 5 年之前
父節點
當前提交
398de75e64
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/EmployeeInfoMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/EmployeeInfoMapper.xml

@@ -155,7 +155,7 @@
             	AND organ_id_ = #{organId}
             	AND organ_id_ = #{organId}
 	        </if>
 	        </if>
 	        <if test="userNameOrIdOrMobile != null">
 	        <if test="userNameOrIdOrMobile != null">
-	            AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%') OR t.id_ = #{search})
+	            AND (real_name_ LIKE CONCAT('%',#{userNameOrIdOrMobile},'%') OR mobile_no_ LIKE CONCAT('%',#{userNameOrIdOrMobile},'%') OR id_ = #{userNameOrIdOrMobile})
 	        </if>
 	        </if>
 	        <if test="subjectId != null">
 	        <if test="subjectId != null">
 	            AND subject_id_ = #{subjectId}
 	            AND subject_id_ = #{subjectId}