no getter for property named 'power_state

错误信息:nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'power_state' in 'class com.epusoft.modules.customer.entity.Customer' 

请点击“查看详细信息”按钮,将详细错误信息发送给系统管理员,谢谢!

 

 

DAO

    <select id="statics" resultType="String">
		SELECT
		count(*)
		FROM  customer a
		<include refid="customerJoins" />
        WHERE a.del_flag = #{DEL_FLAG_NORMAL}
		<if test=" powerState != null and powerState != ''">
			AND a.power_state=#{powerState}
		</if>
		<if test=" name != null and name != ''">
			AND a.name=#{name}
		</if>
		<if test=" idCard != null and idCard != ''">
			AND a.id_card=#{idCard}
		</if>
	</select>

  #{powerState}而非#{power_state}

posted @ 2017-08-01 16:12  superAnny  阅读(224)  评论(0编辑  收藏  举报