yonge před 5 roky
rodič
revize
398de75e64

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

@@ -155,7 +155,7 @@
             	AND organ_id_ = #{organId}
 	        </if>
 	        <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 test="subjectId != null">
 	            AND subject_id_ = #{subjectId}