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}

浙公网安备 33010602011771号