zouxuan hace 5 años
padre
commit
8e70c25a03
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/TeacherMapper.xml

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

@@ -816,7 +816,7 @@
             #{userId}
         </foreach>
         <if test="search != null and search != ''">
-            AND su.real_name_ LIKE CONCAT('%',#{search},'%')
+            AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.username_ LIKE CONCAT('%',#{search},'%'))
         </if>
         GROUP BY su.id_
     </select>