org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'telOrName'

错误: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,解决

相关文章
相关标签/搜索