zoukankan      html  css  js  c++  java
  • 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}

  • 相关阅读:
    eclipse如何设置多个字符的智能提示
    19.面向对象的三大特征 之封装
    18代码块
    成员变量和局部变量的区别
    类与对象
    Python压缩脚本编辑
    字符串内容
    参考
    序列
    元组
  • 原文地址:https://www.cnblogs.com/superAnny/p/7269099.html
Copyright © 2011-2022 走看看