There is no getter for property named 'DEPARTMENT_ID' in 'class com.sccy.hr.model.RewardsPunishment'

出现这种状况一般是:

错误:

<if test="departmentId != null" >
        #{DEPARTMENT_ID,jdbcType=VARCHAR},

  </if>

正确:

<if test="departmentId != null" >
        #{departmentId,jdbcType=VARCHAR},

     </if>

写成DEPARTMENT_ID mybase会去找他的get方法,没有找不到报的错


阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页