当前位置: 代码迷 >> 综合 >> There is no getter for property named 'DEPARTMENT_ID' in 'class com.sccy.hr.model.RewardsPunishment'
  详细解决方案

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

热度:96   发布时间:2023-12-27 01:16:12.0

出现这种状况一般是:

错误:

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

  </if>

正确:

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

     </if>

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


  相关解决方案