錯誤:org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'telOrName' in 'class java.lang.String'java
把標籤去掉就能夠了,標籤是針對javaBean或者map的,spring不能用標籤spring
public List<Map<String,Object>> queryTeacherListByTelOrName(String telOrName) {apache
return (List<Map<String,Object>>) ijxMybatisDAO.getList("com.joinus.modules.integral.entity.ijx.people.Teacher.queryTeacherListByTelOrName", telOrName);get
}it
將它io
<if test="telOrName!= null">class
and (t.teacher_name like '%'||#{telOrName}||'%' or t.tel_num like '%'||#{telOrName}||'%')test
</if>module
改成它List
and (t.teacher_name like '%'||#{telOrName}||'%' or t.tel_num like '%'||#{telOrName}||'%')
OK,解決