Mybatis问题:There is no getter for property named 'Id' in 'class java.lang.String'

来源:互联网 发布:二维数组下标越界 编辑:程序博客网 时间:2024/06/07 05:59
    <select id="getRiskMember" resultMap="BaseResultMap" parameterType="String"resultMap="BaseResultMap">        <include refid="selectMember"/>        and safetylevel > 1        and stauts = 1        <if test="username != null">            and username = #{username}         </if>    </select>

解决办法:

<select id="getRiskMember" resultMap="BaseResultMap" parameterType="String">        <include refid="selectMember"/>        and safetylevel > 1        and stauts = 1        <if test="_parameter != null">            and username = #{username}         </if>    </select>


阅读全文
0 0
原创粉丝点击