出现这种状况一般是:
错误:
<if test="departmentId != null" >
#{
DEPARTMENT_ID,jdbcType=VARCHAR},
</if>
正确:
<if test="departmentId != null" >
#{
departmentId,jdbcType=VARCHAR},
</if>
写成DEPARTMENT_ID mybase会去找他的get方法,没有找不到报的错
出现这种状况一般是:
错误:
<if test="departmentId != null" >
#{
DEPARTMENT_ID,jdbcType=VARCHAR},
</if>
正确:
<if test="departmentId != null" >
#{
departmentId,jdbcType=VARCHAR},
</if>
写成DEPARTMENT_ID mybase会去找他的get方法,没有找不到报的错